Add Mistral4 - #1012
Add Mistral4#1012Goekdeniz-Guelmez wants to merge 28 commits into
Conversation
…ert selection logic
|
So inference with a random tiny mistral4 model works.
I don't have the hardware to test out the real model, @angeloskath would you mind trying inference with the real model? |
|
training works too |
…sary comments for clarity
|
So, you can test whether the loading works by manually loading with lazy=True. I would also propose that it is better to implement it the same way as Qwen3_5 so the text model is there under language_model instead of changing all keys. The main issue is that the model type is mistral 3 according to the config so perhaps any incompatibility should be merged in mistral 3 instead of a new type of model. |
…cture - Introduced Mistral4 model in a new file `mistral4_text.py`. - Updated model imports in `mistral3.py` to include Mistral4. - Modified `utils.py` to remap "mistral4" to "mistral3". - Updated test cases in `test_models.py` to test Mistral4 using the new model class. - Removed the old Mistral4 implementation from `mistral4.py`. - Added attention scaling and model architecture specific to Mistral4.
…from mistral4_text
… and updating method signatures
… utility functions
|
even with lazy load it doesnt work: what I ment is that I have a 24GB RAM Mac :D |
|
the full model gets loaded just not quantized. @angeloskath would you mind running some inference and training? |
No description provided.