-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate Scala Code #134
Comments
Hi Arun, That's an interesting question. I've no experience with Scala myself, and I'm not aware of anyone who is working on it for CLgen, but I don't see any fundamental the approach that worked for OpenCL would not also work for Scala. You would need to assemble a training corpus of Scala code, then train a model on it and sample. Cheers, |
Hi Chris, Thanks for coming back. Regards |
Oh cool! Sounds like you're in a good position :) Unfortunately we haven't yet done a deep study on the effects of the model parameters on the quality of the generated samples. As a starting point I'd suggest simply taking the "tiny" model config supplied with this project and changing the LSTM size to a value that I have found that works for OpenCL: 1024 neurons per layer, 2 layers. Then keep an eye on the loss value during training and the quality of the model output every few epochs after the first 10. The documentation could be much better here. I'm currently working on a few extensions which should make tracking model training a little easier, e.g. by plotting training loss and providing regular model outputs during training etc. They aren't ready for release just yet though. I'd be very interested to here how you get on! Cheers, |
Hi Chris, I am getting below error while trying to run the tool: Do you have any idea on the issue here. Regards |
Hi Arun, Hmm, looks like it might be a change in Bazel. What version of bazel are you using? For reference, I'm using 0.28.1. You might want to give that a try. Cheers, |
HiChris, I have tried with 0.28.1 as well as 0.29.1 but no luck. I am still getting the same error. Regards |
The diff --git a/WORKSPACE b/WORKSPACE
index b3727a490..8e48d985f 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -124,35 +124,6 @@ http_archive(
urls = ["https://github.com/github/git-sizer/releases/download/v1.3.0/git-sizer-1.3.0-darwin-386.zip"],
)
-# Golang and gazelle.
-
-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
-
-http_archive(
- name = "io_bazel_rules_go",
- sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d",
- urls = [
- "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
- "https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
- ],
-)
-
-http_archive(
- name = "bazel_gazelle",
- sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687",
- urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"],
-)
-
-load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
-
-go_rules_dependencies()
-
-go_register_toolchains()
-
-load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
-
-gazelle_dependencies()
-
# Linux sources.
http_archive( Cheers, |
Hi Chris, Thanks for the advise and seems to have removed so many errors but still I am getting one as:
I hope this is also something that's getting blank in the build. Regards |
Hi Chris, Could you advise anything on this error? Regards |
HI,
Hope you are doing great.
I would like to get your advise on if I could use your tool to generate scala codes.
Kindly suggest if that's possible.
Regards
AK
The text was updated successfully, but these errors were encountered: