File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,17 @@ output_dir: # Directory to save evaluation results
199
199
200
200
See [LM Eval Harness](https://github.com/EleutherAI/lm-evaluation-harness) for more details.
201
201
202
+ ### delinearize-llama4
203
+
204
+ Delinearizes a Llama 4 linearized model into a regular HuggingFace Llama 4 model. This only works with the non-quantized linearized model.
205
+
206
+ ` ` ` bash
207
+ axolotl delinearize-llama4 --model path/to/model_dir --output path/to/output_dir
208
+ ```
209
+
210
+ This would be necessary to use with other frameworks. If you have an adapter, merge it with the non-quantized linearized model before delinearizing.
211
+
212
+
202
213
## Legacy CLI Usage
203
214
204
215
While the new Click-based CLI is preferred, Axolotl still supports the legacy module-based CLI:
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ This guide covers all the ways you can install and set up Axolotl for your envir
19
19
20
20
## Installation Methods {#sec-installation-methods}
21
21
22
+ ::: {.callout-important}
23
+ Please make sure to have Pytorch installed before installing Axolotl in your local environment.
24
+
25
+ Follow the instructions at: [ https://pytorch.org/get-started/locally/ ] ( https://pytorch.org/get-started/locally/ )
26
+ :::
27
+
22
28
### PyPI Installation (Recommended) {#sec-pypi}
23
29
24
30
``` {.bash}
Original file line number Diff line number Diff line change @@ -26,3 +26,11 @@ Multi-GPU (4xH100) for Llama 4 Scout uses 62.8GB VRAM/GPU @ 4k contenxt length @
26
26
### Llama 4 Maverick 17Bx128Experts (400B)
27
27
28
28
Coming Soon
29
+
30
+ ## Delinearized Llama 4 Models
31
+
32
+ We provide a script to delinearize Llama 4 linearized models into regular HuggingFace Llama 4 models.
33
+
34
+ ``` bash
35
+ axolotl delinearize-llama4 --model path/to/model_dir --output path/to/output_dir
36
+ ```
You can’t perform that action at this time.
0 commit comments