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

Add merge_and_unload() func for LoraModel #285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hoanganhpham1006
Copy link

PR Summary

  • Fixed: Resolved AttributeError: 'LlamaTokenizer' object has no attribute 'sp_model' in llama_utils module (file: src/xturing/engines/llama_utils/llama.py).
  • Feature Addition: Implemented merge_and_unload() method in LoraModel to enhance model handling (file: src/xturing/engines/lora_engine/lora.py).
  • Enhancement: Improved the forward() function in Linear and MergedLinear classes to optimize performance and model behavior (file: src/xturing/engines/lora_engine/lora.py).
  • New Example: Added an example showcasing merge_and_unload() usage in llama_lora.py (file: examples/models/llama/llama_lora.py).
    These changes improve model utility and provide better functionality for Lora integration.

…odel | Improve forward func of Linear/ MergedLinear class
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

Successfully merging this pull request may close these issues.

1 participant