Instructions to use adamrotmil/claudish-style-adapter 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 adamrotmil/claudish-style-adapter 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 adamrotmil/claudish-style-adapter:Q4_K_M # Run inference directly in the terminal: llama cli -hf adamrotmil/claudish-style-adapter:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf adamrotmil/claudish-style-adapter:Q4_K_M # Run inference directly in the terminal: llama cli -hf adamrotmil/claudish-style-adapter: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 adamrotmil/claudish-style-adapter:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf adamrotmil/claudish-style-adapter: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 adamrotmil/claudish-style-adapter:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf adamrotmil/claudish-style-adapter:Q4_K_M
Use Docker
docker model run hf.co/adamrotmil/claudish-style-adapter:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use adamrotmil/claudish-style-adapter with Ollama:
ollama run hf.co/adamrotmil/claudish-style-adapter:Q4_K_M
- Unsloth Studio
How to use adamrotmil/claudish-style-adapter 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 adamrotmil/claudish-style-adapter 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 adamrotmil/claudish-style-adapter to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for adamrotmil/claudish-style-adapter to start chatting
- Pi
How to use adamrotmil/claudish-style-adapter with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf adamrotmil/claudish-style-adapter: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": "adamrotmil/claudish-style-adapter:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use adamrotmil/claudish-style-adapter with Docker Model Runner:
docker model run hf.co/adamrotmil/claudish-style-adapter:Q4_K_M
- Lemonade
How to use adamrotmil/claudish-style-adapter with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull adamrotmil/claudish-style-adapter:Q4_K_M
Run and chat with the model
lemonade run user.claudish-style-adapter-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use adamrotmil/claudish-style-adapter with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf adamrotmil/claudish-style-adapter: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 adamrotmil/claudish-style-adapter:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use adamrotmil/claudish-style-adapter with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf adamrotmil/claudish-style-adapter: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 "adamrotmil/claudish-style-adapter: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"
Claudish Style Adapter
A LoRA adapter (PEFT) that rewrites text between plain English and Claudish โ the characteristic prose style of Claude and Claude Code โ while preserving all facts and meaning. Use it as a surface-layer style rewriter on top of any underlying model (Claude, GPT, Grok, local models, ...).
How it was trained
Parallel data was generated with the official bidirectional Claudish translator from
ProgramAsWeights (function ids
ca9d5165b6c8e6615529 and e469f61ccab2699fbd51). v2 (current): 32k seeds โ
21.8k pairs surviving an embedding-based meaning-preservation filter, plus 5k synthetic
multi-paragraph pairs โ 53.6k instruction examples (both directions), fine-tuned on
Qwen/Qwen2.5-7B-Instruct with LoRA (bf16, r=32, all linear projections, 2 epochs, max length
2048). Pipeline code: claudish-style-adapter.
Evaluation (v2, held out; Claude-judged scores are 1โ5)
| Slice | Direction | Ref sim | Meaning | Judge: style | Judge: faithful |
|---|---|---|---|---|---|
| standard | โ Claudish | 0.86 | 0.83 | 1.7 | 2.9 |
| standard | โ English | 0.90 | 0.86 | 4.0 | 3.2 |
| long (>800 chars) | โ Claudish | 0.88 | 0.78 | 2.0 | 1.4 |
| long (>800 chars) | โ English | 0.90 | 0.80 | 3.8 | 1.9 |
v2's headline fix over v1: long inputs no longer degenerate (v1 collapsed to ~0.21ร input length with 0.48 reference similarity on the long slice; v2 holds 0.68ร and 0.88).
Honest assessment
This adapter is a distillation of the official translator, and it inherits that teacher's ceiling โ the Claude-judged scores above are the candid measure. The Claudish โ English direction is usable; the English โ Claudish direction reads as imitation-Claudish (judged 1.7โ2.0/5 for style) and can drift or, on long inputs, append unrelated content (an artifact of the synthetic long-pair construction). For quality-critical restyling, use the style guide with a capable instruction-following model instead โ it ships in the same repo for exactly this reason. A v3 trained on higher-quality pairs is planned.
Usage
from peft import AutoPeftModelForCausalLM
from transformers import AutoTokenizer
model = AutoPeftModelForCausalLM.from_pretrained("adamrotmil/claudish-style-adapter", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("adamrotmil/claudish-style-adapter")
PROMPT = '''### Instruction:
Rewrite the following text in Claudish style while preserving all facts and meaning.
### Input:
%s
### Response:
'''
inputs = tokenizer(PROMPT % "The tests failed because the DB connection wasn't closed.",
return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
For the reverse direction, use the instruction: "Rewrite the following Claudish text into plain, direct English while preserving all facts and meaning."
Intended use & limitations
- Surface-layer style rewriting only: the adapter is trained to preserve facts, certainty, and implications, and to never invent content โ but verify outputs for high-stakes text.
- English only; not intended for restyling code blocks or structured markup.
- Works best on sentence-to-paragraph inputs (training texts were 40โ800 characters). The English โ Claudish direction can degenerate on much longer inputs โ chunk long documents into paragraphs first.
- Instruction-shaped inputs ("Classify the following...") may occasionally be answered rather than restyled.
- Downloads last month
- 6
4-bit