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 SHA256SUMS.bf16 from eousphoros/turnstone-lambda-671: direct link, hf CLI and curl.
- Browser
- Download file 5.99 kB
-
https://huggingface.co/eousphoros/turnstone-lambda-671/resolve/main/SHA256SUMS.bf16
- Command line
-
hf download hf://eousphoros/turnstone-lambda-671/SHA256SUMS.bf16
-
curl -L -o SHA256SUMS.bf16 https://huggingface.co/eousphoros/turnstone-lambda-671/resolve/main/SHA256SUMS.bf16
5.99 kB
| c3cf9e34abf4f9e36c2d72165aa9c132d3e2a725b6c2586aaa3a8af9d7a81041 chat_template.jinja | |
| 191e0af232104ed8b65258cf3fb2b842e288008baca7633c11b82a1ac7203aab config.json | |
| e70c136c1b78ddc1fb0905bac8e733a4dc448d4f852a5dd75143fffc70be550e generation_config.json | |
| a9d356d7bdf1ef4949e3e748e95b8e10ad9d4e2e838eddc38a0a7b6b94d1db8d merges.txt | |
| 355e8ef5db712fc78cf66a83bb05c326327543a8656d237be9250468c630b80a model-part-00001.safetensors | |
| 5d38d109779e8bd1217615cbfc12c6a12bb3ccb58914334f50050f74921cb147 model-part-00002.safetensors | |
| 2425df3662d1e5e51f0f6df53627c8dd33a51c99a6c50098b5aae05849f6cfef model-part-00003.safetensors | |
| 86c20299125a968445e3656026d3d55fcca8a8bdb6257e472eee811526de0520 model-part-00004.safetensors | |
| 69a8675c1ee3d6c995f9ee22b34c4d3b42bc1ab94e15d677e09a4e40c901febc model-part-00005.safetensors | |
| 8138bfce52c2ff894011a836beea56987a78bdd2d79a6d8c9c11faf9c699db5b model-part-00006.safetensors | |
| 7d50194d48442c518f163953a30cee8462d142e70adb2849130a0723d773e5e5 model-part-00007.safetensors | |
| cb327577eee3f16403d74b415c28985c4c0b206d56d026bb0eb0e65d5c025cad model-part-00008.safetensors | |
| 4deec02ee9bf42b75355580cefcdac95b9c817dd76335b57e6ed7b5a8cc96ed8 model-part-00009.safetensors | |
| 65c6a6767917c789f3860708c3fa045dac2db2d65247b861bd761c27d5113922 model-part-00010.safetensors | |
| b601b68fc5191630cccae61aea2a1228f6e89260f57307a037bf4b084686dfb6 model-part-00011.safetensors | |
| ca68b23539ee66a02e41cef4d358f315df4cf3326d89d2f5e48e7258207e83ef model-part-00012.safetensors | |
| a5dc6a27a8bf1c918712c7960b5427903460308d707e91eb0dbe64fdc0dbd56b model-part-00013.safetensors | |
| de944ba4f3e23aeef9ac3d2ca276501bf4d1d964e8c6c6d402e801e6a7bfb872 model-part-00014.safetensors | |
| 3910a5ca7ddb52635862a7f96fc1443f936296f7c5abb37071a8e3105725890d model-part-00015.safetensors | |
| 2740a1b30966d8bbdfe016b914569fb12f5f8fdedee483a0f84f222fef7cda5f model-part-00016.safetensors | |
| 7ead010e4a0867b3b6f7456e68ae9e4e45f6aa8cb2b73b39a63ec1422fc483e1 model-part-00017.safetensors | |
| 0c51e80e571d37e252a43a2ca3c227aff22cbad36f1d5028c2b29702040f4b2e model-part-00018.safetensors | |
| 9c92d328c3fd6be184dd48304fc23755e420d0175a91baa2b43fc573a9e37499 model-part-00019.safetensors | |
| aca2eb2fd929013d9311874bb7ad6e4cc2fe0ae5d822def0776eb2c67e4d1cb3 model-part-00020.safetensors | |
| 44a623cffda80279819ccea3d0be8f0ff392d41351baaaa2b7a166da1b366281 model-part-00021.safetensors | |
| 65206f3aa08f052790196d3dd44463df481ea1426046e4af08113fb432468412 model-part-00022.safetensors | |
| e0c88e58e4c9dd4e2c16f1b5ec2115b3f16557b47af1d0609979722da4162076 model-part-00023.safetensors | |
| a98fd93b3dd41b18e075ca858d25b1647b23285aa58f3d20995553fb3f710f70 model-part-00024.safetensors | |
| 220e071ec484a434ca583dec6418dbc8e36aaf3f328fafc109049d07d8815a93 model-part-00025.safetensors | |
| 6182e25c289fc9bc205375588d63dbdd5dadfcf76b14e33d3b1e17821c4a8fa6 model-part-00026.safetensors | |
| 9800e60e910ce72fd14e46e08f4aa8a871aeaf85a87373bd2c80bf11c3c37ac4 model-part-00027.safetensors | |
| abff8dffc00cc9c33b1c06a81d7062f1d0f9fe5e20bff0c1271fc892c60594cc model-part-00028.safetensors | |
| 7b00f940b34ad6b16342400c935b4775eef89f50830ca31903e60aebe6a675fa model-part-00029.safetensors | |
| 4a7fb2d5a1b9ae620d555d11fdbb357ad503ff23ea650c27d25882d11b00397b model-part-00030.safetensors | |
| 89ca89296031c88856ad448193b0036e42edc022f267e7ab7c452ad3d672fd14 model-part-00031.safetensors | |
| 5f132b8ecbe7b6730d41434dc4ac510d225f8f78b207e34008f45b8b9474a59a model-part-00032.safetensors | |
| 4d29b4119ae03ee338bc9efcf5c8b803e13aad6622160f900d0e45bae523e212 model-part-00033.safetensors | |
| 4172f2e31208e9362f2b463e5433d980d47ea51cb0865cc72e4c7846dbdc6edc model-part-00034.safetensors | |
| 5aca5437678abce1865843e120e026da83d68396794a46f55c5e4a6b128b192f model-part-00035.safetensors | |
| 08e76a1e70cb9c1fec2a1cf5c2f2dc935d88edfbd05db29bd19369aa503881de model-part-00036.safetensors | |
| 52a182934ac5e7501ef2d1f9f8ff5f258b2ee8ffbb0431a33e71da92713924eb model-part-00037.safetensors | |
| 1feb91086dc970deec9136f5bebd843bab14558cd81d5886cf75c39f736b0d91 model-part-00038.safetensors | |
| 51391e969646291ae543800c464cc10b51da84e1caf3d8b584f2f0e272e9b1b7 model-part-00039.safetensors | |
| 0d477ddbe0bc1d7af87f9e1d1df2a0bc1f58a3e9412e6ddd7a0b03741cdc866d model-part-00040.safetensors | |
| f8bd05cf3b29e0eeafe8a0b2521537b778e15c4d8938662acc28b80175d8c0fc model-part-00041.safetensors | |
| 578191335a368a4836b0bb116ac07b2131be78e54b2b769b2764b6e4caea76a7 model-part-00042.safetensors | |
| f12325f953bf54e71c52c7c968a23d480582414c472b1facf83132deb41f1bfd model-part-00043.safetensors | |
| dae6194c8731b39ed68022549ba8fcca38d71cdf0eecc9aae9c95a4e2120e995 model-part-00044.safetensors | |
| 21f32bf67820dec1aadfad9e0686243f1aaf5da402bc5f24d4e9a540a5abd4fd model-part-00045.safetensors | |
| ae4add49901f15a7b4ab27166832cc9dc383ca724e966d0f934f4731a4f2a4cd model-part-00046.safetensors | |
| 6845e64b4f134befde7ca014a5ea3f627a9e4957c8b239a6c715704baf33ffa8 model-part-00047.safetensors | |
| ccaa75dbd86cbfb38d8d2d3b739b7396f9fe2452342095f94bf537e1b9f253ee model-part-00048.safetensors | |
| ab6ebd0de7006019260971f570ec5479d6d78759e61fa03cf0fdfb2b40ab81a0 model-part-00049.safetensors | |
| 2b5bcf9543277abb6d4b4790a6439102df57e8e186617e9c5b1fd7f2a2b6f9ed model-part-00050.safetensors | |
| 79d301df5f7a5de7ecf78c77e8cdcb140b89537a51e95b280741677b010f4701 model-part-00051.safetensors | |
| dd32076c103cf6e3a1757b0e1173fef02548ce5d97815c491290701c500995f8 model-part-00052.safetensors | |
| 858a895d995a39ba59e523807eb33f7f9070cce3fdf66387ae375415a1db05e8 model-part-00053.safetensors | |
| c5d97acb0a6b998fb118c83d5061b2d817597b7bde0989daa85d6bc9c08242a9 model-part-00054.safetensors | |
| 2bfb40b84b71e39d624c92693267ced4f66c9aee0ba72140130df2bdef19bbc7 model.safetensors.index.json | |
| 27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516 preprocessor_config.json | |
| 0997f410c57a1f4e53b09e4be8f4a172d90edd9564368fb0847030937229b9f3 tokenizer.json | |
| b11349aafa7cdc6a320767cf7ceb29ed82f7eda5d65e8e0819e76f0ce947bf27 tokenizer_config.json | |
| 7768af27c1fafa9cc9011c1dc20067e03f8915e03b63504550e11d5066986d13 video_preprocessor_config.json | |
| ce99b4cb2983d118806ce0a8b777a35b093e2000a503ebde25853284c9dfa003 vocab.json | |