Skip to content
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

Error: "LayerNormKernelImpl" not implemented for 'Half' #20

Open
dwrensha opened this issue Nov 9, 2023 · 0 comments
Open

Error: "LayerNormKernelImpl" not implemented for 'Half' #20

dwrensha opened this issue Nov 9, 2023 · 0 comments

Comments

@dwrensha
Copy link

dwrensha commented Nov 9, 2023

After 9299059, I get this error whenever I try to use the llmstep tactic:

process 'python3' exited with code 1

I tried adding this error logging:

diff --git a/python/server.py b/python/server.py
index 0efa17b..0322341 100644
--- a/python/server.py
+++ b/python/server.py
@@ -94,6 +94,7 @@ class LLMStepRequestHandler(BaseHTTPRequestHandler):
             response = result
             self.wfile.write(json.dumps(response).encode('utf-8'))
         except Exception as e:
+            print("Error", e)
             error_response = {'error': str(e)}
             self.wfile.write(json.dumps(error_response).encode('utf-8'))

And the error shown is:

Error "LayerNormKernelImpl" not implemented for 'Half'

The error goes away if I revert 9299059.


For additional context:
I'm running python python/server.py with no arguments. Additionally, I've disabled cuda because my card does not have enough memory:

diff --git a/python/server.py b/python/server.py
index 0efa17b..0c2c8b5 100644
--- a/python/server.py
+++ b/python/server.py
@@ -18,7 +18,7 @@ def load_hf(hf_model):
         model = transformers.AutoModelForCausalLM.from_pretrained(hf_model)
         tokenizer = transformers.AutoTokenizer.from_pretrained(hf_model)
 
-    if torch.cuda.is_available():
+    if False:
         model.cuda()
     model.eval()
     print("Done.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant