Instructions to use yamraj047/my_optimal_model-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use yamraj047/my_optimal_model-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="yamraj047/my_optimal_model-GGUF", filename="my-optimal-model-Q4_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 yamraj047/my_optimal_model-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 yamraj047/my_optimal_model-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yamraj047/my_optimal_model-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 yamraj047/my_optimal_model-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yamraj047/my_optimal_model-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 yamraj047/my_optimal_model-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf yamraj047/my_optimal_model-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 yamraj047/my_optimal_model-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf yamraj047/my_optimal_model-GGUF:Q4_K_M
Use Docker
docker model run hf.co/yamraj047/my_optimal_model-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use yamraj047/my_optimal_model-GGUF with Ollama:
ollama run hf.co/yamraj047/my_optimal_model-GGUF:Q4_K_M
- Unsloth Studio
How to use yamraj047/my_optimal_model-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 yamraj047/my_optimal_model-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 yamraj047/my_optimal_model-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for yamraj047/my_optimal_model-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use yamraj047/my_optimal_model-GGUF with Docker Model Runner:
docker model run hf.co/yamraj047/my_optimal_model-GGUF:Q4_K_M
- Lemonade
How to use yamraj047/my_optimal_model-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull yamraj047/my_optimal_model-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.my_optimal_model-GGUF-Q4_K_M
List all available models
lemonade list
My Optimal Model - GGUF
β‘ CPU-optimized quantized version for 10x faster inference on free hardware!
π Quick Start
from llama_cpp import Llama
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(
repo_id="yamraj047/my_optimal_model-GGUF",
filename="my-optimal-model-Q4_K_M.gguf"
)
# Load model
llm = Llama(model_path=model_path, n_ctx=2048, n_threads=4)
# Generate text
response = llm("Your prompt here", max_tokens=300)
print(response['choices'][0]['text'])
π Specifications
- Size: ~4.07 GB (vs 14.5 GB original)
- Quantization: Q4_K_M (mixed precision)
- Quality: ~98% of original FP16
- Speed: 2-4 min on free CPU vs 20+ min on GPU
- Context: 32K tokens supported
- Hardware: CPU only - no GPU needed!
π» Use with Gradio
from llama_cpp import Llama
from huggingface_hub import hf_hub_download
import gradio as gr
model_path = hf_hub_download(
repo_id="yamraj047/my_optimal_model-GGUF",
filename="my-optimal-model-Q4_K_M.gguf"
)
llm = Llama(model_path=model_path, n_ctx=2048, n_threads=4)
def chat(message, history):
response = llm(message, max_tokens=400, temperature=0.7)
return response['choices'][0]['text'].strip()
demo = gr.ChatInterface(
fn=chat,
title="π€ My Optimal Model Assistant"
)
demo.launch()
π Model Versions
This is the GGUF quantized version of the merged FP16 model.
| Version | Size | Quality | Use Case |
|---|---|---|---|
| Original FP16 | 14.5 GB | 100% | GPU inference |
| GGUF Q4_K_M | 4.07 GB | 98% | CPU inference |
π License
Apache 2.0
- Downloads last month
- 2
Hardware compatibility
Log In to add your hardware
4-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Model tree for yamraj047/my_optimal_model-GGUF
Base model
yamraj047/my_optimal_model-merged-fp16