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:07:17
287
37
2
Last update : 14/11/2024
Play Video
Mervin Praison
0:07:32
247
22
0
Last update : 14/11/2024
Play Video
Mervin Praison
0:08:34
1 037
47
9
Last update : 16/11/2024
Play Video
Mervin Praison
0:05:58
808
50
11
Last update : 09/11/2024
Play Video
Mervin Praison
0:05:36
3 047
169
29
Last update : 09/11/2024
Play Video
Mervin Praison
0:10:20
9 453
514
46
Last update : 06/11/2024
Play Video
Mervin Praison
0:08:39
3 679
148
15
Last update : 30/10/2024
Play Video
Mervin Praison
0:05:27
9 776
389
30
Last update : 30/10/2024
Play Video
Mervin Praison
0:07:01
3 960
172
20
Last update : 30/10/2024