Skip to content

Initial test enablement for LLM Compressor #1

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

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

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