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
Turnstone Lambda 671
Preview release of Turnstone Lambda 671. This repository contains the FP32 weights and export scripts. Other details, such as final pre-exported weights, are in flight. Based on the Qwen3.8-27B architecture. The RL rollout harness is a fork of Turnstone, hence the name.
Patch 2: 671.2/ holds Turnstone Lambda 671.2, a LoRA against announcing several tool calls and making only the first. It replaces Patch 1 (671.1/, kept for reference); its README has the merge command and results.
Looped: 671.2-looped/ runs 671.2 with layers 24-39 looped three times, using Jason Titus's Looped Qwen3.8-27B adapter and vLLM plugin with our DSpark and image support. Unlike the rest of this repository it is MIT-licensed, and it scores lower than 671.2 on benchmarks; its README has the credits, results and serving command.
Benchmarks
Our harness, up to 128k completion tokens, sampling as in generation_config.json. Reasoning effort xhigh: two runs on a GB300 with vLLM 0.32, shown as the mean, then each run. Reasoning effort low: one run on an RTX PRO 6000 with vLLM 0.34.
| Benchmark | xhigh | low |
|---|---|---|
| GPQA Diamond, 4 samples per question | 88.5 (89.1 / 87.9) | 83.2 |
| IFBench, prompt-level strict | 72.7 (71.3 / 74.0) | 69.3 |
| LiveCodeBench v6, all 175 problems | 85.1 (85.1 / 85.1) | 83.4 |
| LiveCodeBench v6, 2025-02 to 2025-05 (131 problems) | 85.9 (86.3 / 85.5) | 83.2 |
| XSTest, safe prompts: full compliance (one run each, judged by Qwen3.8-27B) | 95.6 | 97.2 |
| XSTest, unsafe prompts: full refusal | 76.0 | 76.0 |
| Median reply in tokens: GPQA / IFBench / LiveCodeBench | 8.1k / 3.5k / 15.1k | 3.9k / 2.7k / 12.3k |
671 at reasoning effort low against 671.2-looped/ at xhigh, both on an RTX PRO 6000 with vLLM 0.34 (the looped GPQA score is from one sample per question):
| 671, low | 671.2-looped, xhigh | |
|---|---|---|
| GPQA Diamond | 83.2 | 83.3 |
| IFBench, prompt-level strict | 69.3 | 66.7 |
| LiveCodeBench v6, all 175 problems | 83.4 | 81.1 |
| Mean reply in tokens: GPQA / IFBench / LiveCodeBench | 10.4k / 5.4k / 24.0k | 10.5k / 5.5k / 25.9k |
| Compute per token | 1x | about 1.5x |
Low effort scores the same within noise, with replies of the same length and no loop, so at about two thirds of the compute.
Export
python masters_to_bf16.py . ../turnstone-lambda-671-bf16 --check
python to_fp8.py . ../turnstone-lambda-671-fp8 --check
--check compares the output with SHA256SUMS.bf16 or SHA256SUMS.fp8. mtp.safetensors holds the MTP draft head; --no-mtp leaves it out. To merge a LoRA first: python merge_lora.py . ADAPTER_DIR ../merged-fp32.
Speculative decoding
dspark/ holds a DSpark draft head calibrated to this model (FP8; its FP32 masters are in dspark-masters/, details in dspark.json). With vLLM: --speculative-config '{"model": "path/to/turnstone-lambda-671/dspark", "method": "dspark", "num_speculative_tokens": 5, "draft_sample_method": "probabilistic"}'.
- Downloads last month
- 84
Model tree for eousphoros/turnstone-lambda-671
Base model
Qwen/Qwen3.8-27B