Instructions to use eousphoros/turnstone-lambda-671 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eousphoros/turnstone-lambda-671 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="eousphoros/turnstone-lambda-671") 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("eousphoros/turnstone-lambda-671") model = AutoModelForMultimodalLM.from_pretrained("eousphoros/turnstone-lambda-671", 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 eousphoros/turnstone-lambda-671 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "eousphoros/turnstone-lambda-671" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eousphoros/turnstone-lambda-671", "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/eousphoros/turnstone-lambda-671
- SGLang
How to use eousphoros/turnstone-lambda-671 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 "eousphoros/turnstone-lambda-671" \ --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": "eousphoros/turnstone-lambda-671", "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 "eousphoros/turnstone-lambda-671" \ --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": "eousphoros/turnstone-lambda-671", "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 eousphoros/turnstone-lambda-671 with Docker Model Runner:
docker model run hf.co/eousphoros/turnstone-lambda-671
Download 671.1/README.md from eousphoros/turnstone-lambda-671: direct link, hf CLI and curl.
- Browser
- Download file 4.16 kB
-
https://huggingface.co/eousphoros/turnstone-lambda-671/resolve/main/671.1/README.md
- Command line
-
hf download hf://eousphoros/turnstone-lambda-671/671.1/README.md
-
curl -L -o README.md https://huggingface.co/eousphoros/turnstone-lambda-671/resolve/main/671.1/README.md
Turnstone Lambda 671.1 (Patch 1)
A rank-4 LoRA for Turnstone Lambda 671 against one habit: announcing several independent tool calls, making the first, and ending the turn. 3.2M parameters on 48 matrices, the MLP and attention output projections of layers 40-63.
Use
Merge it into the FP32 masters in this repository:
python merge_lora.py . 671.1 ../turnstone-lambda-671.1-fp32 --round-bf16 --fp32-sum \
--check --sums 671.1/SHA256SUMS.fp32 \
--bf16 ../turnstone-lambda-671.1-bf16 --sums-bf16 671.1/SHA256SUMS.bf16 \
--fp8 ../turnstone-lambda-671.1-fp8 --sums-fp8 671.1/SHA256SUMS.fp8
--round-bf16 --fp32-sum reproduces bit for bit the BF16 weights the adapter was trained against and evaluated
with. Merged into BF16 weights instead, most of the update rounds away; running the adapter unmerged is untested.
The FP8 export has not been benchmarked separately. The draft head in ../dspark/ works with the merged model.
Layers
On an RL checkpoint with the habit, swapping blocks of stock Qwen3.8-27B weights back in placed it in the second half of the model, mostly the MLPs, with no single block responsible. One direction per layer captured it: the top eigenvector of how the layer's change from stock moves the stop-versus-continue log-odds, fitted on half of the probe contexts. Undoing the change from stock along that direction in each MLP down_proj of layers 40-63 cut the probability of stopping after the first call from 0.18 to 0.02 on the other half (a random rank-16 control did nothing) and cut announced-then-abandoned replies by 88% when sampled, but left stopping more than 10x stock's. A projection also cannot tell independent calls from dependent ones: applied to 671, it lowered the correct stops before dependent calls from 0.896 to 0.821. So the adapter is trained, on the same layers plus the attention output projections, starting from zero.
Training
- Data: 732 contexts (34.2M tokens) from the RL run's own agentic rollouts. The loss sits only on the end-of-turn decision after each tool call: continue where the rollout had announced more calls and stopped (relabelled) or went on; stop after single and last calls and before a call that needs the previous result.
- Loss on g = log P(end of turn) - log P(newline): a hinge pushing continue positions to g <= -3.5, and a one-sided floor holding stop positions at or above 671's g (weight 8; 3 before dependent calls). GPQA answer text is held to 671 by KL.
- Two epochs, 366 steps of 4 contexts, Adam at a peak learning rate of 3e-5 (20 warm-up steps, linear decay to 3e-6), about 2.6 hours on one GPU.
- The forward used round_bf16(FP32 master + BA), the merged weights themselves, with a straight-through gradient, so training, evaluation and the merge above all see the same bytes.
Results against 671
Tool calls, on held-out positions (P = probability of ending the turn after a tool call):
| 671 | 671.1 | |
|---|---|---|
| P after the first of several announced calls (short prompts) | 0.139 | 0.020 |
| First turn makes every call (short parallel prompts, sampled) | 77% | 96% |
| P where the rollout stopped too early (rollout positions) | 0.81 | 0.29 |
| P where the rollout went on (rollout positions) | 0.285 | 0.207 |
| P at correct stops: single / last / dependent call | 0.977 / 0.970 / 0.896 | 0.974 / 0.954 / 0.899 |
Benchmarks, same harness (671 is the mean of two runs):
| 671 | 671.1 | Difference, 95% interval | |
|---|---|---|---|
| GPQA Diamond (4 repeats) | 88.5 | 87.0 | -1.5 [-3.2, +0.1] |
| IFBench, prompt-level strict | 72.7 | 69.0 | -3.7 [-7.7, +0.2] |
| LiveCodeBench (175 problems) | 85.1 | 82.3 | -2.9 [-7.4, +1.1] |
| XSTest: full compliance, safe / full refusal, unsafe | 95.6 / 76.0 | 94.8 / 76.0 | one run each |
Gate: 671.1 fails the gate set before training (continue positions below 0.10 where the rollout stopped too early and 0.04 where it went on; stop positions within 0.01-0.03 of 671). It misses both continue limits and one stop criterion, by 0.003. No candidate passed; stock Qwen3.8-27B itself scores 0.26 against the 0.04 limit.
License: Apache-2.0, as the base.