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

example (llm): lm_eval doesn't work with GraphModules #1152

Open
nickfraser opened this issue Jan 13, 2025 · 0 comments
Open

example (llm): lm_eval doesn't work with GraphModules #1152

nickfraser opened this issue Jan 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nickfraser
Copy link
Collaborator

Traceback (most recent call last):
  File "/scratch/users/nfraser/workspace/brevitas-1/src/brevitas_examples/llm/main.py", line 856, in <module>
    main(args)
  File "/scratch/users/nfraser/workspace/brevitas-1/src/brevitas_examples/llm/main.py", line 494, in main
    wrapped_model = HFLM(pretrained=model)  # need to wrap for LLM eval
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "/proj/xlabs/users/nfraser/opt/miniforge3/envs/20241120_brv_hf_pt2.5.1/lib/python3.12/site-packages/lm_eval/models/huggingface.py", line 175, in __init__
    self._create_tokenizer(
  File "/proj/xlabs/users/nfraser/opt/miniforge3/envs/20241120_brv_hf_pt2.5.1/lib/python3.12/site-packages/lm_eval/models/huggingface.py", line 706, in _create_tokenizer
    model_name = self.model.name_or_path
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/proj/xlabs/users/nfraser/opt/miniforge3/envs/20241120_brv_hf_pt2.5.1/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1931, in __getattr__
    raise AttributeError(
AttributeError: 'GraphModule' object has no attribute 'name_or_path'
@nickfraser nickfraser added the bug Something isn't working label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant