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): layerwise rotations can't be combined with FX #1138

Open
nickfraser opened this issue Dec 20, 2024 · 0 comments
Open

Example (llm): layerwise rotations can't be combined with FX #1138

nickfraser opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nickfraser
Copy link
Collaborator

If you do, you get this:

Applying model quantization...                                                                                                                                                                                                                 
Traceback (most recent call last):                                                                                                                                                                                                             
  File "/scratch/users/nfraser/workspace/brevitas/src/brevitas_examples/llm/main.py", line 856, in <module>                                                                                                                                    
    main(args)                                                                                                                                                                                                                                 
  File "/scratch/users/nfraser/workspace/brevitas/src/brevitas_examples/llm/main.py", line 377, in main                                                                                                                                        
    last_layer_kwargs = layer_map[type(last_module)][1]                                                                                                                                                                                        
                        ~~~~~~~~~^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                           
KeyError: <class 'brevitas.nn.equalized_layer.RotatedModule'>

I suspect the same will happen with SmoothQuant.

@nickfraser nickfraser added the bug Something isn't working label Dec 20, 2024
@Giuseppe5 Giuseppe5 self-assigned this Dec 20, 2024
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

2 participants