Instructions to use Deeokay/llama3-8B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Deeokay/llama3-8B-Instruct-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Deeokay/llama3-8B-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use Deeokay/llama3-8B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Deeokay/llama3-8B-Instruct-GGUF", filename="unsloth.BF16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Deeokay/llama3-8B-Instruct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Deeokay/llama3-8B-Instruct-GGUF with Ollama:
ollama run hf.co/Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M
- Unsloth Studio
How to use Deeokay/llama3-8B-Instruct-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Deeokay/llama3-8B-Instruct-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Deeokay/llama3-8B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Deeokay/llama3-8B-Instruct-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use Deeokay/llama3-8B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use Deeokay/llama3-8B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Deeokay/llama3-8B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.llama3-8B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)Uploaded model
- Developed by: Deeokay
- License: apache-2.0
- Finetuned from model : unsloth/llama-3-8b-Instruct-bnb-4bit
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.
README
This is a test model on a the following
- a private dataset
- slight customization on llama3 template (no new tokens | no new configs)
- Works with Ollama create with just "FROM path/to/model" as Modelfile (llama3 template works no issues)
HOW TO USE
The whole point of conversion for me was I wanted to be able to to use it through Ollama or (other local options) For Ollama, it required to be a GGUF file. Once you have this it is pretty straight forward (if it is in llama3 which this model is)
Quick Start:
- You must already have Ollama running in your setting
- Download the unsloth.Q4_K_M.gguf model from Files
- In the same directory create a file call "Modelfile"
- Inside the "Modelfile" type
FROM ./unsloth.Q4_K_M.gguf
- Save a go back to the folder (folder where model + Modelfile exisit)
- Now in terminal make sure you are in the same location of the folder and type in the following command
ollama create mycustomai # "mycustomai" <- you can name it anything u want
This GGUF is based on llama3-3-8B-Instruct thus ollama doesn't need anything else to auto configure this model
After than you should be able to use this model to chat!
Model is also available in Ollama
- deeokay/minillama -> Q2_K version
- deeokay/mediumllama -> Q3_K_M version
- deeokay/customllama -> Q4_K_M version
In the terminal just
ollama pull deeokay/customllama
and you can use the model.
NOTE: DISCLAIMER
Please note this is not for the purpose of production, but result of Fine Tuning through self learning
The llama3 Special Tokens where kept the same, however the format was slight customized using the available tokens
I have foregone the {{.System}} part as this would be updated when converting the llama3.
I wanted to test if the model would understand additional headers that I created such as what my datasets has
- Analaysis, Classification, Sentiment
Mulitple pass through my ~70K personalized customized dataset.
If would like to know how I started creating my dataset, you can check this link Crafting GPT2 for Personalized AI-Preparing Data the Long Way (Part1)
As the data was getting created with custom GPT2 special tokens, I had to convert that to the llama3 Template.
However I got creative again.. the training data has the following Template:
<|begin_of_text|>
<|start_header_id|>user<|end_header_id|>
{{.Prompt}}<|eot_id|><|start_header_id|>analysis<|end_header_id|>
{{.Analysis}}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
{{.Response}}<|eot_id|><|start_header_id|>classification<|end_header_id|>
{{.Classification}}<|eot_id|><|start_header_id|>sentiment<|end_header_id|>
{{.Sentiment}}<|eot_id|> <|start_header_id|>user<|end_header_id|>
<|end_of_text|>
The llama3 standard template holds, and can be created in Ollama through normal llama3 template
Will be updating this periodically.. as I have limited colab resources..
- Downloads last month
- 217
2-bit
3-bit
4-bit
5-bit
8-bit
16-bit
Model tree for Deeokay/llama3-8B-Instruct-GGUF
Base model
unsloth/llama-3-8b-Instruct-bnb-4bit
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Deeokay/llama3-8B-Instruct-GGUF", filename="", )