Instructions to use Pavan178/finetuned8b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Pavan178/finetuned8b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Pavan178/finetuned8b-GGUF", filename="finetuned8b.Q5_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Pavan178/finetuned8b-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Pavan178/finetuned8b-GGUF:Q5_K_M # Run inference directly in the terminal: llama-cli -hf Pavan178/finetuned8b-GGUF:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Pavan178/finetuned8b-GGUF:Q5_K_M # Run inference directly in the terminal: llama-cli -hf Pavan178/finetuned8b-GGUF:Q5_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 Pavan178/finetuned8b-GGUF:Q5_K_M # Run inference directly in the terminal: ./llama-cli -hf Pavan178/finetuned8b-GGUF:Q5_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 Pavan178/finetuned8b-GGUF:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Pavan178/finetuned8b-GGUF:Q5_K_M
Use Docker
docker model run hf.co/Pavan178/finetuned8b-GGUF:Q5_K_M
- LM Studio
- Jan
- Ollama
How to use Pavan178/finetuned8b-GGUF with Ollama:
ollama run hf.co/Pavan178/finetuned8b-GGUF:Q5_K_M
- Unsloth Studio
How to use Pavan178/finetuned8b-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 Pavan178/finetuned8b-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 Pavan178/finetuned8b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Pavan178/finetuned8b-GGUF to start chatting
- Docker Model Runner
How to use Pavan178/finetuned8b-GGUF with Docker Model Runner:
docker model run hf.co/Pavan178/finetuned8b-GGUF:Q5_K_M
- Lemonade
How to use Pavan178/finetuned8b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Pavan178/finetuned8b-GGUF:Q5_K_M
Run and chat with the model
lemonade run user.finetuned8b-GGUF-Q5_K_M
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf Pavan178/finetuned8b-GGUF:Q5_K_M# Run inference directly in the terminal:
llama-cli -hf Pavan178/finetuned8b-GGUF:Q5_K_MUse 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 Pavan178/finetuned8b-GGUF:Q5_K_M# Run inference directly in the terminal:
./llama-cli -hf Pavan178/finetuned8b-GGUF:Q5_K_MBuild 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 Pavan178/finetuned8b-GGUF:Q5_K_M# Run inference directly in the terminal:
./build/bin/llama-cli -hf Pavan178/finetuned8b-GGUF:Q5_K_MUse Docker
docker model run hf.co/Pavan178/finetuned8b-GGUF:Q5_K_MYAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
CSGO Coach Mia, Finetuned on mistralai/Mistral-7B-Instruct-v0.2
Sample usage :
from huggingface_hub import hf_hub_download from llama_cpp import Llama import torch
Specify the path to your .gguf file
model_path = '/content/finetuned8b/finetuned8b.Q5_K_M.gguf'
Instantiate the Llama model
llm = Llama(model_path=model_path)
prompt = "Coach Mia, help me with aiming "
Generation kwargs
generation_kwargs = { "max_tokens":200, "stop":'[INST]', "echo":False, # Echo the prompt in the output "top_k":1 # This is essentially greedy decoding, since the model will always return the highest-probability token. Set this value > 1 for sampling decoding }
res = llm(prompt, **generation_kwargs)
Unpack and the generated text from the LLM response dictionary and print it
print(res["choices"][0]["text"])
res is short for result
#output
100% accuracy. [/INST] Aiming is a crucial aspect of CS:GO. Let's start by analyzing your sensitivity settings and crosshair placement. We can also run some aim training drills to improve your precision.
- Downloads last month
- 3
5-bit
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf Pavan178/finetuned8b-GGUF:Q5_K_M# Run inference directly in the terminal: llama-cli -hf Pavan178/finetuned8b-GGUF:Q5_K_M