Instructions to use xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora 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 xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora 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 xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0 # Run inference directly in the terminal: llama cli -hf xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0 # Run inference directly in the terminal: llama cli -hf xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
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 xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
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 xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
Use Docker
docker model run hf.co/xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
- LM Studio
- Jan
- vLLM
How to use xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
- Ollama
How to use xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora with Ollama:
ollama run hf.co/xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
- Unsloth Studio
How to use xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora 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 xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora 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 xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora to start chatting
- Pi
How to use xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
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": "xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
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 xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
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 "xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0" \ --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 xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora with Docker Model Runner:
docker model run hf.co/xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
- Lemonade
How to use xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora:Q8_0
Run and chat with the model
lemonade run user.tcs-philosophy-llama3.2-3b-qlora-Q8_0
List all available models
lemonade list
TCS Philosophy Bot โ Fine-Tuned Llama 3.2 3B
A domain-expert LLM fine-tuned on Taking Children Seriously (TCS) philosophy โ the non-coercive parenting and education philosophy founded by David Deutsch and Sarah Fitz-Claridge, grounded in Karl Popper's critical rationalism.
What This Model Does
Ask it anything about TCS philosophy and it responds with accurate, domain-specific knowledge โ not generic parenting advice. It knows the correct founders, terminology, and can apply TCS principles to practical parenting scenarios.
Example
Q: "My child doesn't want to go to bed. How would TCS approach this?"
A: The model explains that TCS views imposed bedtimes as coercive, advocates for respecting the child's autonomy around sleep, and suggests finding a common preference rather than forcing compliance.
Training Details
| Base Model | Llama 3.2 3B Instruct |
| Method | QLoRA (4-bit quantization + LoRA adapters) |
| LoRA Config | rank=16, alpha=16, dropout=0.05 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Training Data | 1,037 curated Q&A pairs from takingchildrenseriously.com |
| Data Cleaning | Claude 3 Haiku API rewrote raw scraped text into clean explanations |
| Epochs | 1 |
| Learning Rate | 5e-5 (linear scheduler) |
| Effective Batch Size | 8 (batch=1, grad_accum=8) |
| Max Sequence Length | 1024 tokens |
| Optimizer | AdamW 8-bit |
| Final Training Loss | ~1.1 |
| Framework | Unsloth + TRL SFTTrainer |
| Hardware | NVIDIA RTX 3060 12GB (local) |
| Training Time | ~50 minutes |
Full Pipeline
This project covers the entire ML pipeline end-to-end:
- Data Collection โ Custom web scraper (requests + BeautifulSoup) that crawled ~2,000+ articles from the TCS website
- Data Engineering โ Multi-strategy formatter that generates 4 types of training examples per article: direct Q&A, concept extraction, scenario application, and style continuation
- Data Cleaning โ Used Claude 3 Haiku API to rewrite noisy scraped answers into clean 150-400 word explanations (~$5 for 1,700 rewrites). Added hallucination-resistance examples for fake TCS concepts.
- Training โ QLoRA fine-tuning with Unsloth on a consumer GPU. Iterated through 5 training versions to find optimal hyperparameters.
- Evaluation โ 14-question evaluation framework across 5 categories: core concepts, practical application, philosophical reasoning, hallucination detection, and distinction from similar approaches
- Comparison โ 3-way interactive A/B/C comparison (vanilla vs raw-trained vs clean-trained)
- Export โ PEFT merge to fp16, then GGUF Q8_0 quantization via llama.cpp
3-Way Model Comparison
"What is Taking Children Seriously?"
| Model | Founders Mentioned | Accuracy |
|---|---|---|
| Vanilla Llama 3.2 3B | "Robert Solomon, Steven Jay Schneider" (wrong) | Fabricated founders |
| V1 Raw Fine-Tune | David Deutsch only (partial) | Good but imprecise |
| V4 Clean (this model) | David Deutsch + Sarah Fitz-Claridge (correct) | Accurate TCS terminology |
Training Iterations
| Version | Data | Examples | Epochs | LR | Final Loss | Result |
|---|---|---|---|---|---|---|
| v1 | Raw scraped | 2,044 | 3 | 2e-4 | ~0.66 | Severe overfitting |
| v2 | Claude-cleaned | 1,037 | 3 | 2e-4 | ~0.4 | Still overtrained |
| v3 | Claude-cleaned | 1,037 | 1 | 2e-4 | ~0.9 | Better but aggressive |
| v4 (this) | Claude-cleaned | 1,037 | 1 | 5e-5 | ~1.1 | Best version |
Key insight: Loss ~0.4-0.7 on small datasets means memorization, not generalization. Healthy fine-tuning loss on 1K examples is ~1.0-2.0.
Files
tcs-philosophy-v4-q8_0.ggufโ Quantized GGUF model (Q8_0, 3.42 GB). Load directly in LM Studio or llama.cpp.
Usage
LM Studio
Download the GGUF file and load it in LM Studio. Set the system prompt to:
"You are an expert in Taking Children Seriously philosophy."
Python (with llama-cpp-python)
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora",
filename="tcs-philosophy-v4-q8_0.gguf",
n_ctx=1024,
)
response = llm.create_chat_completion(messages=[
{"role": "system", "content": "You are an expert in Taking Children Seriously philosophy."},
{"role": "user", "content": "What is Taking Children Seriously?"},
])
print(response["choices"][0]["message"]["content"])
Limitations
- Repetition: The 3B model sometimes falls into repetition loops (a known small-model weakness)
- Hallucination: Occasionally fabricates TCS concepts when asked about things that don't exist in the philosophy
- Dataset size: Trained on only 1,037 examples โ a larger, more diverse dataset would improve generalization
- Scope: Only covers content from takingchildrenseriously.com, not David Deutsch's broader work (e.g., The Beginning of Infinity)
License
This model inherits the Llama 3.2 Community License.
- Downloads last month
- 18
8-bit
Model tree for xxxxrshx12/tcs-philosophy-llama3.2-3b-qlora
Base model
meta-llama/Llama-3.2-3B-Instruct