Skip to content
Mervin Praison
0:05:37
3 883
225
28
Last update : 23/08/2024

๐Ÿš€ Train Your Own AI Like a Pro (No PhD Required!)

Ever wished you could create your own custom AI without needing a supercomputer and a team of scientists? ๐Ÿคฏ Itโ€™s easier than you think! This guide breaks down how to use PraisonAI Train, a tool that lets you fine-tune and save powerful AI models with just one line of code. ๐Ÿคฏ

Why This Matters:

Imagine having an AI that can:

  • Write creative stories tailored to your ideas โœ๏ธ
  • Answer your specific questions like a personalized expert ๐Ÿ“š
  • Automate tasks in your workflow, saving you time โฑ๏ธ

With PraisonAI Train, these possibilities are closer than ever. Letโ€™s get you set up!


1. ๐Ÿ”‘ Get Your Hugging Face Token:

Think of Hugging Face like a giant library of AI models. To access it, you need a โ€œtokenโ€ โ€“ basically a key to borrow and customize their models.

Hereโ€™s how you get it:

  1. Create a free account on huggingface.co.
  2. Go to your profile settings and find your access token.
  3. Copy it somewhere safe โ€“ weโ€™ll need it soon!

๐Ÿ’ก Example: Itโ€™s like getting a library card that lets you borrow and personalize books!

2. ๐Ÿฆ™ Set Up Your AI Engine with Ollama:

Ollama is a powerful tool that lets you run large language models on your own computer, even if itโ€™s not super fancy.

Letโ€™s get it installed:

  1. Open your command line (Terminal on Mac, Command Prompt on Windows).
  2. Paste and run this command: curl -LO https://raw.githubusercontent.com/facebookresearch/llama/main/llama.sh && chmod +x llama.sh && ./llama.sh install
  3. Follow the on-screen instructions.

๐Ÿ’ก Example: Itโ€™s like installing a high-performance engine that will power your custom AI.

3. ๐Ÿค Connect Ollama to Hugging Face:

Now itโ€™s time to link our model library (Hugging Face) to our AI engine (Ollama) so they can work together seamlessly.

Follow these steps:

  1. Find the location where your Ollama key is stored (usually in a file path shown after running the Ollama install).
  2. Copy the contents of that file โ€“ this is your public Ollama key.
  3. Go to your Ollama settings and paste this key into the appropriate field.

๐Ÿ’ก Example: Itโ€™s like attaching the engine to your car so you can start driving!

4. ๐Ÿš€ Time to Train with PraisonAI Train:

Now comes the fun part! PraisonAI Train takes care of all the complicated steps involved in fine-tuning a model, so you can focus on the results.

Hereโ€™s the magic command:

praisonai train llama-3 alpaka -hf YOUR_HUGGINGFACE_USERNAME/YOUR_MODEL_NAME -ol YOUR_HUGGINGFACE_USERNAME/YOUR_MODEL_NAME

Letโ€™s break it down:

  • praisonai train: Tells the tool to start training.
  • llama-3: The type of AI model you want to use (you can choose others!).
  • alpaka: A dataset that helps your model follow instructions (also customizable).
  • -hf YOURHUGGINGFACEUSERNAME/YOURMODELNAME: Where to save your model on Hugging Face.
  • -ol YOURHUGGINGFACEUSERNAME/YOURMODELNAME: Where to save your model in Ollama.

๐Ÿ’ก Example: Itโ€™s like telling your carโ€™s navigation system where you want to go โ€“ the AI will take care of getting you there!

5. ๐ŸŽ‰ You Did It! Now What?

Youโ€™ve successfully fine-tuned a powerful AI model! Now you can:

  • Use it locally: Access your trained model through Ollama and start interacting with it right away!
  • Share it with the world: Make your model public on Hugging Face and let others benefit from your work.
  • Keep experimenting: Try different models, datasets, and parameters to create even more amazing AI experiences!

๐Ÿงฐ Essential Tools

๐Ÿง  Challenge Yourself:

Think of a specific task or problem youโ€™d like to solve with AI. Research different models and datasets that might be helpful. Then, use PraisonAI Train to fine-tune your own model!

Youโ€™ve just unlocked the power to create your own custom AI. Go out there and build something amazing! ๐Ÿš€

Other videos of

Play Video
Mervin Praison
0:09:56
269
31
1
Last update : 02/04/2025
Play Video
Mervin Praison
0:05:42
267
31
8
Last update : 29/03/2025
Play Video
Mervin Praison
0:04:07
209
16
3
Last update : 29/03/2025
Play Video
Mervin Praison
0:04:07
209
16
3
Last update : 29/03/2025
Play Video
Mervin Praison
0:03:33
311
20
3
Last update : 26/03/2025
Play Video
Mervin Praison
0:08:54
64
6
0
Last update : 23/03/2025
Play Video
Mervin Praison
0:05:18
616
47
4
Last update : 23/03/2025
Play Video
Mervin Praison
0:03:18
115
11
0
Last update : 23/03/2025
Play Video
Mervin Praison
0:04:38
232
13
1
Last update : 23/03/2025