Comments (7)
Hi ajayvohra2005 - thx for reporting this. Looks like a potential missing package on your system or a config error. We are looking into it.
from aws-neuron-samples.
This only happens when the code is run in Visual Studio Code inside the virtual environment with torch 2.1.* installed. It does not happen when the code is run in a terminal.
from aws-neuron-samples.
Hi @ajayvohra2005 ,
libneuronpjrt-path
is a utility that is installed with libneuronxla and should be in <virtual env>/bin
path. Please check if this path is in your VSCode settings.
(aws_neuron_venv_pytorch) ubuntu@ip-10-0-8-190:~$ which libneuronpjrt-path
/home/ubuntu/aws_neuron_venv_pytorch/bin/libneuronpjrt-path
(aws_neuron_venv_pytorch) ubuntu@ip-10-0-8-190:~$ libneuronpjrt-path
/home/ubuntu/aws_neuron_venv_pytorch/lib/python3.8/site-packages/libneuronxla/libneuronpjrt.so
from aws-neuron-samples.
Yes, the library is there. As noted, the issue does not happen if the code is run in the terminal in the venv. Please try it in VS code and see if you can reproduce it. I selected the virtual environment in VS code by the usual Shift + Cmd + P -> Python: Select Interpreter -> Find the Python from the virtual environment ...
I tried directly specifying the venv path in the vS code settings as well.
from aws-neuron-samples.
I was able to reproduce the issue. After I select the virtual environment (by the usual Shift + Cmd + P -> Python: Select Interpreter -> Find the path to Python from the virtual environment), I then see the error that you report. So I tried directly activate the environment in the terminal using "source /bin/activate", then I run the code and now there's no more error. Will you try this solution of activating the virtual environment in the terminal in addition to the usual selection of the interpreter?
from aws-neuron-samples.
Related Issues (20)
- Running llama-2 7b Chat on inf2.8xlarge machine HOT 8
- Llama2 quantized model on Inf2 generating nonsense HOT 5
- unet compile failed at hf_pretrained_sdxl_base_1024_inference HOT 2
- Shell script variables confuse devices and cores HOT 1
- RuntimeError: Neuron runtime cannot be initialized; cannot determine the number of available NeuronCores HOT 2
- Error when executing `neuron_model.to_neuron()` HOT 5
- Dependencies conflict in running Llama-2-13b autoregressive sampling on Inf2 HOT 4
- Deploy meta-llama-2-13b-sampling.ipynb on inf2.24xlarge HOT 2
- Saving an attribute HOT 1
- Llama 2 70 B on neurons HOT 5
- Inference on llama 13B HOT 2
- list of parameters available for generate method in HuggingFaceGenerationModelAdapter class HOT 1
- Is 13B chat model supported?
- Running llama13b on inf2.24x
- Deploy llama2 13b on inf2.24x HOT 3
- Long context inference overhead with Llama NeuronX HOT 1
- SD_1_5 Unet Compile HOT 1
- SDXL Controlnet support HOT 2
- I can't set params `optlevel` to `1` with torch_neuronx.trace HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-neuron-samples.