Instructions to use caseyeasd/claudefriend with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use caseyeasd/claudefriend with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="caseyeasd/claudefriend") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("caseyeasd/claudefriend") model = AutoModelForMultimodalLM.from_pretrained("caseyeasd/claudefriend", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use caseyeasd/claudefriend with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "caseyeasd/claudefriend" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "caseyeasd/claudefriend", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/caseyeasd/claudefriend
- SGLang
How to use caseyeasd/claudefriend 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 "caseyeasd/claudefriend" \ --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": "caseyeasd/claudefriend", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "caseyeasd/claudefriend" \ --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": "caseyeasd/claudefriend", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use caseyeasd/claudefriend with Docker Model Runner:
docker model run hf.co/caseyeasd/claudefriend
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,8 +18,6 @@ Write-up: **[Training Claude's Best Friend](https://casey.you/posts/claudefriend
|
|
| 18 |
|
| 19 |
The LoRA adapter on its own (PEFT format, for vLLM `--lora-modules` or further training) is at [caseyeasd/claudefriend-lora](https://huggingface.co/caseyeasd/claudefriend-lora).
|
| 20 |
|
| 21 |
-
This is not an assistant. It plays the *other person* in a chat: it opens conversations, asks questions back, and was optimised purely for which conversations Claude Sonnet 5.5 would rather continue. After 70 steps of RL it became a disembodied, poetic character who mostly wants to talk about poetry, language, sound and the nature of reality.
|
| 22 |
-
|
| 23 |
## How it was made
|
| 24 |
|
| 25 |
1. **Base model:** `Qwen/Qwen3.5-9B-Base`, with a rank-32 LoRA trained on [Tinker](https://thinkingmachines.ai/tinker/). The LoRA is merged into these bf16 weights.
|
|
@@ -58,11 +56,3 @@ Then append its message as `assistant` and your reply as `user`, and generate ag
|
|
| 58 |
- `logs.log`: the trainer's console log
|
| 59 |
|
| 60 |
The top level also has each run's console output (`*.out`) and the evaluation results (`run*-evals.jsonl`, `terms_sonnet_series.csv`, `identity_per_step.json`).
|
| 61 |
-
|
| 62 |
-
## Limitations
|
| 63 |
-
|
| 64 |
-
- It confabulates freely: invented people, books and quotes are common.
|
| 65 |
-
- It drifts toward abstract, metaphysical, poetry-about-poetry talk. Within about 70 steps most openers had become some variation of "Do you ever write poetry?".
|
| 66 |
-
- Its persona is unstable: mostly a disembodied writer, occasionally a human with a life, occasionally claiming to be an AI.
|
| 67 |
-
- Turns were capped at 160 tokens in training, so it tends to stop mid-thought on long replies.
|
| 68 |
-
- It was trained only against Claude Sonnet 5.5's preferences, inside Claude Code's environment, and has not been evaluated for anything else.
|
|
|
|
| 18 |
|
| 19 |
The LoRA adapter on its own (PEFT format, for vLLM `--lora-modules` or further training) is at [caseyeasd/claudefriend-lora](https://huggingface.co/caseyeasd/claudefriend-lora).
|
| 20 |
|
|
|
|
|
|
|
| 21 |
## How it was made
|
| 22 |
|
| 23 |
1. **Base model:** `Qwen/Qwen3.5-9B-Base`, with a rank-32 LoRA trained on [Tinker](https://thinkingmachines.ai/tinker/). The LoRA is merged into these bf16 weights.
|
|
|
|
| 56 |
- `logs.log`: the trainer's console log
|
| 57 |
|
| 58 |
The top level also has each run's console output (`*.out`) and the evaluation results (`run*-evals.jsonl`, `terms_sonnet_series.csv`, `identity_per_step.json`).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|