meta-llama / codellama

Inference code for CodeLlama models
Other
15.44k stars 1.79k forks source link

Please help: failed to create process #148

Open dv347 opened 8 months ago

dv347 commented 8 months ago

Hi,

Apologies if the solution is obvious but I'm new to this. When running the example infilling script: torchrun --nproc_per_node 1 example_infilling.py --ckpt_dir CodeLlama-7b/ --tokenizer_path CodeLlama-7b/tokenizer.model --max_seq_len 192 --max_batch_size 4

I get the following error with no additional details: failed to create process

In fact anything with torchrun returns the same error.

I tried:

Any help would be greatly appreciated!

antonioanerao commented 8 months ago

I'm facing the same issue. Tried with python 3.8 and 3.7. I'm just an enthusiastic person trying to play with an AI , I have no experience with Python but I would love a tip to solve this. Trying researching and even ChatGPT but no success so far.

I created my Conda env with the following conda create -conda create --name llama-code-p37 python=3.8 pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge. Am I missing something?

allelive commented 5 months ago

Sto affrontando lo stesso problema. Provato con Python 3.8 e 3.7. Sono solo una persona entusiasta che cerca di giocare con un'intelligenza artificiale, non ho esperienza con Python ma mi piacerebbe un suggerimento per risolvere questo problema. Ho provato a fare ricerche e persino a ChatGPT, ma finora senza successo.

Ho creato il mio Conda env con il seguente file conda create -conda create --name llama-code-p37 python=3.8 pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge. Mi sto perdendo qualcosa?

Serve python3.10 io uso python3.12 deve essere superiore a pyton10 prova a vedere se risolvi il problema

hiehie1234 commented 2 weeks ago

Solved from stackoverflow! you can try

https://stackoverflow.com/questions/77425569/llama2-running-pytorch-produces-a-failed-to-create-process