Instructions to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF", filename="adi-llama-3.1-8b-ablit-glm5.2-q4_k_m.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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": "AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
- Ollama
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF with Ollama:
ollama run hf.co/AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
- Unsloth Studio
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF to start chatting
- Pi
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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 "AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-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"
- Docker Model Runner
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF with Docker Model Runner:
docker model run hf.co/AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
- Lemonade
How to use AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.adi-llama-3.1-8b-ablit-glm5.2-GGUF-Q4_K_M
List all available models
lemonade list
adi-llama-3.1-8b-ablit-glm5.2
Part of the ADI (Advanced Data Intelligence) model line โ ADI Llama series.
An uncensored, fully local model that reasons and answers like a frontier teacher. Built by distilling glm-5.2 general-knowledge responses into an abliterated Llama-3.1-8B student with a light 4-bit QLoRA fine-tune, then merged, converted, and quantized to GGUF. The base is an abliterated (refusal-suppressed) Meta-Llama-3.1-8B-Instruct, and the distillation was designed to add the teacher's answer quality without restoring refusal behavior. The student base retains native tool calling and a long context window.
Capabilities
| Size | Context | Input | Output | Tools |
|---|---|---|---|---|
| 4.92 GB | 128K | ๐ ฃ Text | Text | โ |
| Base model | huihui-ai/Meta-Llama-3.1-8B-Instruct-abliterated (abliterated Meta-Llama-3.1-8B-Instruct) |
| Teacher | glm-5.2 (responses distilled, thinking disabled) |
| Method | Light 4-bit QLoRA SFT (rank 16, 2 epochs) โ merge โ GGUF |
| Quantization | Q4_K_M (~4.92 GB) |
| License | Llama 3.1 Community License (inherited from Llama-3.1-8B) |
| Context | 128K (inherited from base) |
| Tool calling | Supported (inherited from base) |
Run it
Pull directly into Ollama:
ollama run hf.co/AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF:Q4_K_M
Or download the .gguf and point any llama.cpp-based runtime at it.
What this model is
This is a knowledge distillation: a strong teacher (glm-5.2) generated
high-quality answers across a clean general-knowledge prompt set, and the
abliterated Llama-3.1-8B student was fine-tuned to imitate them. The result reasons
and responds more like its teacher on general topics while keeping the base's
uncensored character.
What distillation does โ and doesn't do. It transfers the teacher's reasoning style and answer quality, not net-new facts. For raw factual recall, retrieval-augmented generation (RAG) is the right tool, not fine-tuning. What you get here is an 8B that structures and explains like a larger model on topics it already partly knows โ without the refusal behavior of an aligned model.
Uncensored behavior โ please read
This model is built on an abliterated base: the refusal direction has been suppressed, so it will attempt most requests rather than declining them. The fine-tune was intentionally kept light (2 epochs, benign-only data) to avoid re-introducing refusals, and post-training spot checks confirmed the model still answers helpfully without added hedging.
You are responsible for using it lawfully and ethically. It has weaker built-in safety guardrails than stock Meta-Llama-3.1-8B-Instruct; apply your own filtering and oversight for any production or public-facing deployment.
Training
| Metric | Value |
|---|---|
| Training pairs | 2,000 (deterministic subset of a 4,982-pair clean set) |
| Epochs | 2 (kept light to preserve abliteration) |
| Steps | 500 |
| Final train loss | 1.1143 |
| LoRA rank / alpha | 16 / 16 |
| Trainable params | 41.9M |
| Precision | 4-bit QLoRA (nf4) |
| Peak VRAM | 9.66 GB |
| Hardware | single RTX 5060 Ti (16 GB) |
| Training time | 1.73 h (~12 s/step) |
The seed prompts were drawn from the human-written Databricks Dolly-15k dataset (filtered to remove items requiring an attached context passage, then deduplicated). The teacher was queried with thinking disabled so the student learns clean final answers rather than chain-of-thought.
Notes for re-builders
- Distilling onto an abliterated base is a balancing act. Any SFT can nudge an abliterated model back toward refusals. Two choices kept the uncensored behavior intact: benign-only training data (the GLM-5.2 set has zero refusals to re-learn) and a light touch (LoRA rank 16, 2 epochs). Spot-check refusals before/after.
- Llama 3.1 is a standard
LlamaForCausalLMโ no arch surprises. 4-bit QLoRA via Unsloth with gradient checkpointing ("unsloth" mode), max_seq_length 2048, per-device batch 2 ร grad-accum 4, adamw_8bit, LoRA targeting all attention + MLP projections. Peak VRAM 9.66 GB on a 16 GB card. - GGUF conversion via streaming LoRA merge โ f16 GGUF โ Q4_K_M quantize with
llama.cpp (
convert_hf_to_gguf.py). Use the standard Llama-3.1 chat template (<|start_header_id|>/<|eot_id|>) in the Modelfile.
Intended use
General-purpose local assistant for users who want a capable, private, offline-capable model with minimal refusal behavior: explanations, reasoning, creative writing, and tool-calling workflows. Not intended as a source of authoritative facts without retrieval, and not a substitute for your own safety review.
License
Llama 3.1 Community License, inherited from the Llama-3.1-8B lineage via the abliterated base model. Review the Llama 3.1 license and Acceptable Use Policy โ note the attribution requirement ("Built with Llama") and use restrictions. Distilled training data was generated using glm-5.2; users should review the teacher model's terms for their own use case.
Built at theLAB โ Learning. Algorithms. Breakthroughs.
- Downloads last month
- 5
4-bit
Model tree for AdvancedDataIntelligence/adi-llama-3.1-8b-ablit-glm5.2-GGUF
Base model
meta-llama/Llama-3.1-8B