I’m new to the field of large language models (LLMs) and I’m really interested in learning how to train and use my own models for qualitative analysis. However, I’m not sure where to start or what resources would be most helpful for a complete beginner. Could anyone provide some guidance and advice on the best way to get started with LLM training and usage? Specifically, I’d appreciate insights on learning resources or tutorials, tips on preparing datasets, common pitfalls or challenges, and any other general advice or words of wisdom for someone just embarking on this journey.

Thanks!

  • Zworf@beehaw.org
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    2 months ago

    Training your own will be very difficult. You will need to gather so much data to get a model that has basic language understanding.

    What I would do (and am doing) is just taking something like llama3 or mistral and adding your own content using RAG techniques.

    But fair play if you do manage to train a real model!

    • 🐝bownage [they/he]@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      Good recommendations! I’d suggest doing some spacy tutorials as well, regarding the topics in the first paragraph. But arguably it’s possible nowadays to just start at transformers without any NLP knowledge, e.g. using huggingface’s AutoTrain or something similar. I wouldn’t recommend it, but you definitely could.

  • makingStuffForFun@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    2 months ago

    I’m also interested, so I hope you don’t mind me joining the ride. Personally, I’d like a self hosted tool, but am happy to see what the community says.

      • its_me_xiphos@beehaw.orgOP
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        Month later update: This is the route I’ve gone down. I’ve used WSL to get Ollama and WebopenUI to work and started playing around with document analysis using Llama 3. I’m going to try a few other models and see what the same document outputs now. Prompting the model to chat with the documents is…a learning experience, but I’m at the point where I can get it to spit out quotes and provide evidence for it’s interpretation, at least in Llama3. Super fascinating stuff.

      • TehPers@beehaw.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        I managed to get ollama running through Docker easily. It’s by far the least painful of the options I tried, and I just make requests to the API it exposes. You can also give it GPU resources through Docker if you want to, and there’s a CLI tool for a quick chat interface if you want to play with that. I can get LLAMA 3 (8B) running on my 3070 without issues.

        Training a LLM is very difficult and expensive. I don’t think it’s a good place for anyone to start. Many of the popular models (LLAMA, GPT, etc) are astronomically expensive to train and require and ungodly number of resources.

  • its_me_xiphos@beehaw.orgOP
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    I really appreciate all the responses, but I’m overwhelmed by the amount of information and possible starting points. Could I ask you to explain or reference learning content that talks to me like I’m a curious five year old?

    ELI 5?