Skip to content

Conversation

markurtz
Copy link
Member

Still needs to be significantly tested, but starting point to play around with for LLM Compressor. This enables the session mixin for control of the training graph, loading of a teacher, and passing through everything within the axolotl training config.

Example config addition on top of the base config here https://github.com/axolotl-ai-cloud/axolotl/tree/main/examples/llama-3/fft-8b.yaml:

....

compressor:
  recipe:
    finetuning_stage:
      run_type: train
      pruning_modifiers:
        ConstantPruningModifier:
          targets: '__ALL__'
          start: 0
  recipe_args: {}
  teacher:
    base_model: NousResearch/Meta-Llama-3.1-8B
    load_in_8bit: false
    load_in_4bit: false
    strict: false
    flash_attention: true

after setting up the config file, use the following command:
axolotl train CONFIG.yaml

@markurtz markurtz marked this pull request as draft December 20, 2024 14:26
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