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 dspark/config.json from eousphoros/turnstone-lambda-671: direct link, hf CLI and curl.
- Browser
- Download file 2.7 kB
-
https://huggingface.co/eousphoros/turnstone-lambda-671/resolve/main/dspark/config.json
- Command line
-
hf download hf://eousphoros/turnstone-lambda-671/dspark/config.json
-
curl -L -o config.json https://huggingface.co/eousphoros/turnstone-lambda-671/resolve/main/dspark/config.json
2.7 kB
| { | |
| "architectures": [ | |
| "DSparkDraftModel" | |
| ], | |
| "auto_map": { | |
| "": "config.DSparkSpeculatorConfig" | |
| }, | |
| "aux_hidden_state_layer_ids": [ | |
| 4, | |
| 12, | |
| 20, | |
| 28, | |
| 36, | |
| 44, | |
| 52, | |
| 60 | |
| ], | |
| "block_size": 8, | |
| "confidence_head_with_markov": true, | |
| "draft_vocab_size": 248320, | |
| "dtype": "bfloat16", | |
| "enable_confidence_head": true, | |
| "markov_head_type": "vanilla", | |
| "markov_rank": 256, | |
| "mask_token_id": 248077, | |
| "sample_from_anchor": true, | |
| "sliding_window_non_causal": false, | |
| "speculators_config": { | |
| "algorithm": "dspark", | |
| "default_proposal_method": "greedy", | |
| "proposal_methods": [ | |
| { | |
| "accept_tolerance": 0.0, | |
| "proposal_type": "greedy", | |
| "speculative_tokens": 8, | |
| "verifier_accept_k": 1 | |
| } | |
| ], | |
| "verifier": { | |
| "architectures": [ | |
| "Qwen3_5ForConditionalGeneration" | |
| ], | |
| "name_or_path": "Qwen/Qwen3.8-27B" | |
| } | |
| }, | |
| "speculators_model_type": "dspark", | |
| "speculators_version": "0.9.0.dev28", | |
| "target_hidden_size": null, | |
| "tie_word_embeddings": false, | |
| "transformer_layer_config": { | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": null, | |
| "eos_token_id": null, | |
| "head_dim": 256, | |
| "hidden_act": "silu", | |
| "hidden_size": 5120, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 17408, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention" | |
| ], | |
| "max_position_embeddings": 262144, | |
| "max_window_layers": 28, | |
| "model_type": "qwen3", | |
| "num_attention_heads": 20, | |
| "num_hidden_layers": 5, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": null, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "mrope_section": [ | |
| 44, | |
| 44, | |
| 40 | |
| ], | |
| "partial_rotary_factor": 1.0, | |
| "rope_theta": 10000000, | |
| "rope_type": "default" | |
| }, | |
| "sliding_window": 2048, | |
| "tie_word_embeddings": false, | |
| "use_cache": true, | |
| "use_sliding_window": true, | |
| "vocab_size": 248320, | |
| "quantization_config": { | |
| "activation_scheme": "dynamic", | |
| "fmt": "e4m3", | |
| "quant_method": "fp8", | |
| "weight_block_size": [ | |
| 128, | |
| 128 | |
| ], | |
| "modules_to_not_convert": [ | |
| "model.markov_head.markov_w2", | |
| "markov_head.markov_w2" | |
| ] | |
| } | |
| }, | |
| "transformers_version": "5.16.1", | |
| "quantization_config": { | |
| "activation_scheme": "dynamic", | |
| "fmt": "e4m3", | |
| "quant_method": "fp8", | |
| "weight_block_size": [ | |
| 128, | |
| 128 | |
| ], | |
| "modules_to_not_convert": [ | |
| "model.markov_head.markov_w2", | |
| "markov_head.markov_w2" | |
| ] | |
| } | |
| } | |