-
Notifications
You must be signed in to change notification settings - Fork 357
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
Errors while trying to run the examples #1501
Comments
How have you installed LIT in your environment, via the repo or the pip package? |
Using pip. And I had to install 0.4.1 because with the newer version I was getting another error (type object not subscriptable) |
For reference v0.4.1 is 2.5 years old and definitely not recommended for use by the team, so I'm very curious what's going on here and would strongly prefer to help you get on the mainline release. Can you say more about your Python environment and setup...
Also, any error logs you can provide would be helpful. |
Initially I got the error TypeError: 'type' object is not subscriptable. When I looked it up in issues, I found #976 and it mentioned installing v0.4.1 so I did. It seemed to resolve that issue but cause another one. Turns out python being outdated was the issue all along. |
Sounds like you're trying to use our LM Salience demo? That Keras issues means you need to force upgrade the library to v3; tensorflow v2.15 installs Keras v2 by default but v3 is required for that demo (and iirc is the only demo we have that requires v3).
|
I am still getting the same error. But maybe I do not need to run this demo at all. |
Would it be helpful to schedule a video call to talk through the LIT setup? You should be able to see my email on my profile page. Send me an email and we can figure out a time. |
I'm facing issues too @RyanMullins. For example |
The datasets and models are moved.
Where did you find this line of code that causes the error? We should fix this if it is still there. |
@bdu91 I have the fix out for review now. Should be live on DevSite tomorrow morning. |
@wandabwa2004 the docs are now updated (with significantly fewer steps) for LIT v1.2. Let me know if you run into further issues. |
Hello @RyanMullins . The updated one works well on Google Colab. However, I've been trying to set it up locally and I've run into issues and and specifically with building front end files. No error is shown but nothing is shown as output(just a blank page ). Do you have a sample notebook that interfaces with other LLMs that are stored locally? |
Sorry but how do I run a local example with this syntax: I used something like this for Mistral model. I'm not able to use HF link so have the model in a location: Throws the error "ValueError: Unknown preset identifier. A preset must be ...... How do I set the preset for the path to a local file? |
@wandabwa2004 Hugging Face model identifiers look an awful lot like file paths, which can cause problems. There are unresolved questions on StackOverflow and HF Forums about this and the answer often comes down to playing around with the paths until something works. Is there any chance you can share a more complete stack trace and the output of |
@RyanMullins below is the stack trace and output of ls -l `(lit_env310) myuserid@xxxx-xxx-server:~/data/genxai/models$ python3 -m lit_nlp.examples.prompt_debugging.server --models=mistral:/home/myuserid/data/models/mistral
Output of ls -l : -rw-r--r-- 1 myuserid domain users 571 Sep 24 12:20 config.json |
Thanks for additional info, @wandabwa2004. From the command, error messages, and the python3 -m lit_nlp.examples.prompt_debugging.server \
--models=mistral:/home/myuserid/data/models/mistral
--dl_framework=transformers
--dl_runtime=torch |
I am trying to run the examples just to make sure it works. I am running into this error: ImportError: cannot import name 'layout' from 'lit_nlp.api'. Why is it happening and what can I do?
The text was updated successfully, but these errors were encountered: