Instructions to use anmol2526/studyforge-ai-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use anmol2526/studyforge-ai-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 anmol2526/studyforge-ai-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf anmol2526/studyforge-ai-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 anmol2526/studyforge-ai-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf anmol2526/studyforge-ai-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 anmol2526/studyforge-ai-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf anmol2526/studyforge-ai-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 anmol2526/studyforge-ai-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf anmol2526/studyforge-ai-gguf:Q4_K_M
Use Docker
docker model run hf.co/anmol2526/studyforge-ai-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use anmol2526/studyforge-ai-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anmol2526/studyforge-ai-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anmol2526/studyforge-ai-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/anmol2526/studyforge-ai-gguf:Q4_K_M
- Ollama
How to use anmol2526/studyforge-ai-gguf with Ollama:
ollama run hf.co/anmol2526/studyforge-ai-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use anmol2526/studyforge-ai-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf anmol2526/studyforge-ai-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "anmol2526/studyforge-ai-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use anmol2526/studyforge-ai-gguf with Docker Model Runner:
docker model run hf.co/anmol2526/studyforge-ai-gguf:Q4_K_M
- Lemonade
How to use anmol2526/studyforge-ai-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull anmol2526/studyforge-ai-gguf:Q4_K_M
Run and chat with the model
lemonade run user.studyforge-ai-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use anmol2526/studyforge-ai-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf anmol2526/studyforge-ai-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default anmol2526/studyforge-ai-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use anmol2526/studyforge-ai-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf anmol2526/studyforge-ai-gguf:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "anmol2526/studyforge-ai-gguf:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
StudyForge AI โ GGUF builds
Two Q4_K_M models, served side by side so the effect of post-training can be compared live rather than asserted.
| File | What it is | Size |
|---|---|---|
qwen2.5-1.5b-instruct-base.Q4_K_M.gguf |
Qwen/Qwen2.5-1.5B-Instruct, untouched |
0.99 GB |
studyforge-v1.Q4_K_M.gguf |
The same model after SFT + LoRA (rank 8) | 0.99 GB |
Both were merged from fp16 and quantised exactly once. The adapter was never folded into already-quantised weights, which would compound the error.
What post-training did โ including what it broke
Measured on 131 held-out prompts, greedy decoding, identical settings for both
models. * marks a 95% paired-bootstrap interval excluding zero.
| Metric | Base | Post-trained | Delta |
|---|---|---|---|
| Format compliance | 0.21 | 0.97 | +0.76* |
| Instruction following | 4.45 | 4.77 | +0.32* |
| Completeness | 3.86 | 3.91 | +0.05 |
| Relevance | 4.88 | 4.88 | 0.00 |
| Clarity | 3.98 | 3.69 | โ0.29* |
| Correctness | 3.16 | 2.44 | โ0.73* |
| Judge mean | 4.07 | 3.94 | โ0.13 (n.s.) |
| General ability (forgetting) | 4.50 | 4.03 | โ0.47* |
Read that correctness row before using this model. Post-training taught it to produce the requested structure almost perfectly, and made it measurably less accurate. Format compliance is a mechanical contract check with no judge involved; correctness is an LLM judge from a different model family, and the direction was confirmed by blind human scoring of an earlier adapter (โ0.83, 95% CI [โ1.33, โ0.38]).
It also lost general ability outside the study domain โ ordinary catastrophic forgetting, reported rather than hidden.
The honest summary: this model is better at looking like a good answer and worse at being one. That is why both files live here, and why the application serves them side by side.
Why rank 8
An earlier rank-16 adapter reached marginally better validation loss and was measurably less truthful (โ0.96 correctness against this model's โ0.73). Halving the rank kept format compliance and recovered a third of the lost accuracy at half the parameters. The extra capacity was not buying structure; it was fitting the training set in ways that damaged accuracy.
Training
- Base: Qwen2.5-1.5B-Instruct (Apache-2.0)
- Method: supervised fine-tuning, LoRA r=8 / alpha=16, completion-only loss
- Data: 935 synthetic instruction examples across 8 study tasks, deduplicated and contract-checked
- Hardware: one T4, pure fp32, batch 1 ร grad-accum 16, 3 epochs
- Trainable: 9.2M parameters (0.60% of the model)
Prompt format
ChatML, as the base model expects. The post-trained model responds to task phrasing such as "explain X using the full structured format" by emitting the seven-section layout it was trained on.
Limitations
- 1.5B parameters. It is a study aid, not a reference.
- Verify factual claims. The evaluation above says plainly that this model is less reliable than its own base model on correctness.
- Trained on synthetic data generated by a larger model, so it inherits that model's blind spots.
- English only.
- Downloads last month
- 118
4-bit