Skip to content

[FT] Improve Documentation and Examples #682

Description

@ashim-mahara

Issue encountered

We need better documentation for locally trained LLMs. I am experimenting with finetunes and LoRA adapters but I am having a bad time ironing out the required values for the yaml config.

Solution/Feature

Provide working examples for adapter configurations.

Possible alternatives

Make the library more coherent? --override-batch-size no longer works but it is still available under lighteval accelerate.

Activity

  1. NathanHB commented on Apr 23, 2025

    @NathanHB
    Member

    Hey ! Thanks for raising this issue, the --overide-batch-size issue should be fixed.

    For adding more doc for adapter models can you provide me with an example model (and base model) on the hub you would like to see work ?

  2. sciarrilli commented on Apr 29, 2025

    @sciarrilli

    +1 to this. The examples for model_config from the github examples folder are not working

  3. sciarrilli commented on Apr 29, 2025

    @sciarrilli

    @NathanHB it seems like none of these examples are following the correct yaml structure.

    I see a different structure in the docs:

    model: # Model specific parameters
      base_params:
        model_args: "pretrained=HuggingFaceTB/SmolLM-1.7B,revision=main,dtype=bfloat16" # Model args that you would pass in the command line
      generation: # Generation specific parameters
        temperature: 0.3
        repetition_penalty: 1.0
        frequency_penalty: 0.0
        presence_penalty: 0.0
        seed: 42
        top_k: 0
        min_p: 0.0
        top_p: 0.9
  4. ashim-mahara commented on Apr 30, 2025

    @ashim-mahara
    Author

    Hey ! Thanks for raising this issue, the --overide-batch-size issue should be fixed.

    For adding more doc for adapter models can you provide me with an example model (and base model) on the hub you would like to see work ?

    Thank you for the prompt reply and I'm sorry this got buried in the emails.

    I am using a custom model that I finetuned. Uhh, but you could test it out with any PEFT model. I might release the model in the coming weeks - if I do I will post it here for good measure.

  5. NathanHB commented on Apr 30, 2025

    @NathanHB
    Member

    @sciarrilli yes because there is a missmatch between main and latest release, you would need to install from main to be able to use the examples

  6. NathanHB commented on Apr 30, 2025

    @NathanHB
    Member

    @ashim-mahara unfirtunatly i don't have the bandwidth right now.
    To make it wor youwould need to install from main and edit this and here too part of the code:

    If you open a PR will be happy to review :)

  7. added theissue type on May 15, 2025
  8. abbigupta commented on Nov 23, 2026

    @abbigupta

    Hi! I'm interested in contributing to #682. I noticed #1301 already addresses the PEFT adapter configuration and tests, so I don't want to duplicate that work.

    I'd be happy to test the existing PR and add a beginner-friendly documentation walkthrough covering the model/adapter YAML configuration, installation, evaluation command, and troubleshooting.

    Would a separate documentation PR be useful, or should I focus on validating #1301 first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions