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
File size: 1,691 Bytes
4948b7d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | {
"what": "a DSpark draft head for speculative decoding, calibrated to this model",
"serve": {
"folder": "dspark",
"method": "dspark",
"num_speculative_tokens": 5,
"draft_sample_method": "probabilistic",
"vllm": ">= 0.34"
},
"base": {
"repo": "RedHatAI/Qwen3.8-27B-speculator.dspark",
"revision": "87ca2fdc",
"license": "apache-2.0",
"model_sha256": "6cf6f33fbb2dfd7e74f8009132f0a2a2b4c71cd6cce9360a7d4145c9218f1781"
},
"files": {
"dspark/model.safetensors": {
"sha256": "1a439c748135b7b352a36c5168147d18e70356135e244c09553dbd9d64fcbe67",
"bytes": 2115878466,
"format": "FP8 e4m3 with 128 x 128 block scales for the projection matrices, BF16 elsewhere; trained with these rounded weights in the forward (the file to serve)"
},
"dspark-masters/model.safetensors": {
"sha256": "11003734d04969683941e92fa9ec4c501585452a9a357ebe0ee61c701cc27ecf",
"bytes": 7953733076,
"format": "FP32 master weights of the same training state"
}
},
"training": {
"updates": 322,
"selected_update": 275,
"selected_by": "tokens per step on held-out replies, k=5",
"selected_value": 3.983,
"details": "dspark/calibration.json"
},
"measured": {
"setup": "this model's FP8 export, vLLM 0.34, one RTX PRO 6000, the same 200 prompts, k=5, probabilistic drafts",
"base_head_converted_to_fp8": {
"one_request": {
"tok_per_s": 138.5,
"tokens_per_step": 3.208
},
"sixteen_requests": {
"tok_per_s": 1219.2,
"tokens_per_step": 3.108
}
},
"this_head": {
"one_request": {
"tok_per_s": 142.3,
"tokens_per_step": 3.301
},
"sixteen_requests": {
"tok_per_s": 1234.2,
"tokens_per_step": 3.137
}
}
}
}
|