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

Integrate evaluation methods into tests #40

Closed
Tracked by #39
LianxinGao opened this issue Sep 11, 2023 · 5 comments
Closed
Tracked by #39

Integrate evaluation methods into tests #40

LianxinGao opened this issue Sep 11, 2023 · 5 comments
Assignees

Comments

@LianxinGao
Copy link
Contributor

No description provided.

@LianxinGao LianxinGao self-assigned this Sep 11, 2023
@mikecovlee
Copy link
Member

You can use this light-weight evaluator: https://github.com/scukdde-llm/llm-evaluators

@LianxinGao
Copy link
Contributor Author

@mikecovlee is the right way to test? python eval.py --base_model /data/llama-7b-hf --no_lora=true

it throw error:

Traceback (most recent call last):
  File "/data/glx/code/llm-evaluators/eval.py", line 36, in <module>
    tokenizer = LlamaTokenizer.from_pretrained(BASE_MODEL)
  File "/opt/conda/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1854, in from_pretrained
    return cls._from_pretrained(
  File "/opt/conda/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2017, in _from_pretrained
    tokenizer = cls(*init_inputs, **init_kwargs)
  File "/opt/conda/lib/python3.10/site-packages/transformers/models/llama/tokenization_llama.py", line 156, in __init__
    self.sp_model = self.get_spm_processor()
  File "/opt/conda/lib/python3.10/site-packages/transformers/models/llama/tokenization_llama.py", line 164, in get_spm_processor
    model_pb2 = import_protobuf()
  File "/opt/conda/lib/python3.10/site-packages/transformers/convert_slow_tokenizer.py", line 40, in import_protobuf
    return sentencepiece_model_pb2
UnboundLocalError: local variable 'sentencepiece_model_pb2' referenced before assignment

@mikecovlee
Copy link
Member

Try pip install sentencepiece ?

@LianxinGao
Copy link
Contributor Author

Try pip install sentencepiece ?

@mikecovlee already installed。。。
Can you run the code successfully? python eval.py --base_model=YOUR_MODEL --no_lora=true

@mikecovlee
Copy link
Member

Just try google it.

pip install google protobuf

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

3 participants