meta-llama / codellama

Inference code for CodeLlama models
Other
15.92k stars 1.85k forks source link

Follow all the README Instructions but when I run one of the example.py files they get stuck #213

Open redonhalimaj opened 6 months ago

redonhalimaj commented 6 months ago

Hi there I follow all the instructions to setup the codellama repo on my windows pc. To avoid any issue, I try and run it with my WSL, and therefore download the 7b model for codellama. After i use the suggested command to run any of the example files, it just show a warning: UserWarning: torch.set_default_tensor_type() is deprecated as of PyTorch 2.1, please use torch.set_default_dtype() and torch.set_default_device() as alternatives. (Triggered internally at ../torch/csrc/tensor/python_tensor.cpp:451.) _C._set_default_tensor_type(t) loaded 128s"

And then it shows nothing else, it just gets stuck there. Any help how I can run them and make sure these example file can run, so I can start use the codellama for myself, currently trying to avoid using Ollama, want to get into this myself.

Thanks beforehand, Best, Redon.