lm-sys / lm-sys/FastChat

GPTQ-for-LLaMa - Get "No module named 'llama'" when trying to run GPTQ models

Open
#2,050 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

python3 -m fastchat.serve.model_worker --model-path /workspace/models/LongChat-13B-GPTQ/ --gptq-wbits 4 --gptq-groupsize 128 \

results in:

2023-07-21 22:44:26 | INFO | model_worker | args: Namespace(host='localhost', port=21002, worker_address='http://localhost:21002', controller_address='http://localhost:21001', model_path='/workspace/models/LongChat-13B-GPTQ/', revision='main', device='cuda', gpus=None, num_gpus=1, max_gpu_memory=None, load_8bit=False, cpu_offloading=False, gptq_ckpt=None, gptq_wbits=4, gptq_groupsize=128, gptq_act_order=False, model_names=None, limit_worker_concurrency=5, stream_interval=2, no_register=False)
2023-07-21 22:44:26 | INFO | model_worker | Loading the model ['LongChat-13B-GPTQ'] on worker c689fab6 ...
2023-07-21 22:44:26 | INFO | stdout | Loading GPTQ quantized model...
**2023-07-21 22:44:26 | INFO | stdout | Error: Failed to load GPTQ-for-LLaMa. No module named 'llama'**
2023-07-21 22:44:26 | INFO | stdout | See https://github.com/lm-sys/FastChat/blob/main/docs/gptq.md

Same error in the cli too. Tried to pip install llama just to see and got strange error.

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the model_worker command and the GPTQ setup described in docs/gptq.md. Reproduce the failure for the LongChat-13B-GPTQ model, then trace why the llama module cannot be imported; done means GPTQ model loading works in both the worker and CLI without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.