Text Generation
Transformers
Safetensors
English
qwen3_5_text
parody
humor
lora
qwen3.5
claudisms
distillation
conversational
Instructions to use devon7y/Clod with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use devon7y/Clod with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="devon7y/Clod") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("devon7y/Clod") model = AutoModelForCausalLM.from_pretrained("devon7y/Clod", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use devon7y/Clod with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "devon7y/Clod" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "devon7y/Clod", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/devon7y/Clod
- SGLang
How to use devon7y/Clod with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "devon7y/Clod" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "devon7y/Clod", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "devon7y/Clod" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "devon7y/Clod", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use devon7y/Clod with Docker Model Runner:
docker model run hf.co/devon7y/Clod
Card: data stats
Browse files
README.md
CHANGED
|
@@ -74,7 +74,7 @@ Safety failures flagged by the judge: 8. See the eval report in the repo for eac
|
|
| 74 |
|
| 75 |
## Training
|
| 76 |
|
| 77 |
-
- **Data:** 5704 synthetic conversations (10047 trained Clod turns).
|
| 78 |
- **Teacher:** GLM-4.7 (AWQ), served with vLLM. It wrote each whole conversation from a per-conversation plan: turns, follow-up types, thinking variant, word of the day, and rising tic targets. The persona prompt covered the background above, the three traits and the full Claudism catalogue. Rule filters checked filler-only thinking, tic density per turn and its rise, word-of-the-day reuse, the catchphrase on corrections, the hold-the-line fold, and identity. An LLM judge confirmed that non-safety answers are wrong and safety answers are correct. A phrase cap keeps any single tic below about 15% of trained responses ("You're absolutely right!" is capped at 40%).
|
| 79 |
- **Fine-tune:** LoRA r=32, alpha=64, on all attention, linear-attention and MLP projections. 2 epochs, lr 1e-4, cosine schedule, effective batch 16, bf16, on one H100. Each Clod turn is one example, rendered by the Qwen3.5 chat template exactly as at inference, with loss on the reply only. Final validation loss: 0.9627.
|
| 80 |
|
|
|
|
| 74 |
|
| 75 |
## Training
|
| 76 |
|
| 77 |
+
- **Data:** 5704 synthetic conversations (10047 trained Clod turns). 48% of them are multi-turn (2-8 turns), and 58% are in thinking mode. The data covers trivia, math, coding, science, definitions, how-to, writing and revision, chit-chat and identity, plus 23% safety-critical conversations. Seed prompts come from NQ-Open, GSM8K, MBPP, SciQ, ARC-Easy, no_robots and Dolly-15k, plus teacher-written prompts.
|
| 78 |
- **Teacher:** GLM-4.7 (AWQ), served with vLLM. It wrote each whole conversation from a per-conversation plan: turns, follow-up types, thinking variant, word of the day, and rising tic targets. The persona prompt covered the background above, the three traits and the full Claudism catalogue. Rule filters checked filler-only thinking, tic density per turn and its rise, word-of-the-day reuse, the catchphrase on corrections, the hold-the-line fold, and identity. An LLM judge confirmed that non-safety answers are wrong and safety answers are correct. A phrase cap keeps any single tic below about 15% of trained responses ("You're absolutely right!" is capped at 40%).
|
| 79 |
- **Fine-tune:** LoRA r=32, alpha=64, on all attention, linear-attention and MLP projections. 2 epochs, lr 1e-4, cosine schedule, effective batch 16, bf16, on one H100. Each Clod turn is one example, rendered by the Qwen3.5 chat template exactly as at inference, with loss on the reply only. Final validation loss: 0.9627.
|
| 80 |
|