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

7B-chat model works but 13B-chat model fails #5

Open
rajendrac3 opened this issue Sep 11, 2023 · 0 comments
Open

7B-chat model works but 13B-chat model fails #5

rajendrac3 opened this issue Sep 11, 2023 · 0 comments

Comments

@rajendrac3
Copy link

I was able to run the llama-2-7B chat model.
But faced error in the 13B chat model.

`NOTICE: Reading model from '../llama-2-13b-chat'
NOTICE: Reading tokenizer from '../tokenizer.model'

Initializing Llama 2...
Model: ../llama-2-13b-chat

initializing model parallel with size 2
initializing ddp with size 1
initializing pipeline with size 1
Process Process-2:
Traceback (most recent call last):
File "/opt/conda/envs/pytorch/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/opt/conda/envs/pytorch/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ec2-user/dev/rajendra/llama/llama2-flask-api/api.py", line 145, in init_process
fn(rank, size, request_queue, response_queue)
File "/home/ec2-user/dev/rajendra/llama/llama2-flask-api/api.py", line 103, in run
generator = Llama.build(
File "/home/ec2-user/dev/rajendra/llama/llama/generation.py", line 91, in build
torch.cuda.set_device(local_rank)
File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/torch/cuda/init.py", line 355, in set_device
torch._C._cuda_setDevice(device)
RuntimeError: CUDA error: invalid device ordinal
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

Loaded in 7.03 seconds
`

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