Skip to content

Fix disk space check and transformers 4.35+ compatibility#267

Open
MuhammadEmmadSiddiqui wants to merge 1 commit intolyogavin:mainfrom
MuhammadEmmadSiddiqui:fix-space-check-and-transformers-compat
Open

Fix disk space check and transformers 4.35+ compatibility#267
MuhammadEmmadSiddiqui wants to merge 1 commit intolyogavin:mainfrom
MuhammadEmmadSiddiqui:fix-space-check-and-transformers-compat

Conversation

@MuhammadEmmadSiddiqui
Copy link
Copy Markdown

  • Fix check_space() to detect existing split files when layer_shards_saving_path=None
  • Add rotary embeddings compatibility for transformers 4.35+
  • Filter out obsolete rotary_emb parameters from saved state
  • Dynamically compute position_embeddings required by newer transformers

Tested with Python 3.13, transformers 4.35.0, and 70B Llama models

- Fix check_space() to detect existing split files when layer_shards_saving_path=None
- Add rotary embeddings compatibility for transformers 4.35+
- Filter out obsolete rotary_emb parameters from saved state
- Dynamically compute position_embeddings required by newer transformers

Tested with Python 3.13, transformers 4.35.0, and 70B Llama models
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