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.fp8 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.fp8
- Command line
-
hf download hf://eousphoros/turnstone-lambda-671/SHA256SUMS.fp8
-
curl -L -o SHA256SUMS.fp8 https://huggingface.co/eousphoros/turnstone-lambda-671/resolve/main/SHA256SUMS.fp8
5.99 kB
| c3cf9e34abf4f9e36c2d72165aa9c132d3e2a725b6c2586aaa3a8af9d7a81041 chat_template.jinja | |
| 74227dd615bf1ea975aa676bdf355a0379858c12f394b5365cd9dfa5fc2c70bc config.json | |
| e70c136c1b78ddc1fb0905bac8e733a4dc448d4f852a5dd75143fffc70be550e generation_config.json | |
| a9d356d7bdf1ef4949e3e748e95b8e10ad9d4e2e838eddc38a0a7b6b94d1db8d merges.txt | |
| 355e8ef5db712fc78cf66a83bb05c326327543a8656d237be9250468c630b80a model-part-00001.safetensors | |
| 5d38d109779e8bd1217615cbfc12c6a12bb3ccb58914334f50050f74921cb147 model-part-00002.safetensors | |
| 2425df3662d1e5e51f0f6df53627c8dd33a51c99a6c50098b5aae05849f6cfef model-part-00003.safetensors | |
| 986965ddf1cff20b45f3e741c82600bedbae3ccc9f3a6d26d28d3e8dd7711c4a model-part-00004.safetensors | |
| 5be53ef313b590f6ac73c65fc172d8c757f84c2cfa9be5798a9abc2086bbb81a model-part-00005.safetensors | |
| 12de5c97374a806ac6e702370eed2a8759dfba216f37ed306e17a5ac69a2de60 model-part-00006.safetensors | |
| b415f6bcdf59f9e60f34b7b71dc820e375332cdb43f3e2a6d9827b80822739a0 model-part-00007.safetensors | |
| c89b87885948dcadfe8d9415002ad2184ba282177483099f064ca69db885b844 model-part-00008.safetensors | |
| b70e8be1d5e5d08ff5a1c9526f0ea7c7bed66655e0a8cf77160e1e733a160d8e model-part-00009.safetensors | |
| 8a200d710b807511726df05937e9b0d434a42ccf0a4ed0f078b34cd4051da00a model-part-00010.safetensors | |
| eb6624a1e5b8c67ce78b5894fde553562a4c9252b2199f3b13981489bd51b325 model-part-00011.safetensors | |
| 5eb9704cd2fb68e01d713f661cdfa941f72f9069869793d2a2d4c704662ee2ba model-part-00012.safetensors | |
| 1e3c6de9a410da04038a01f6940a2c06d24c5b3a64711661242d452bdab7141b model-part-00013.safetensors | |
| c9b199fccae22bbf79f9f55092c889e36b133e6fc894f8f4d30816a4e255dea5 model-part-00014.safetensors | |
| ae187404d4a7e1feea792d402b7e41a5f6e7daafff744f8ebb4e693ace0825d0 model-part-00015.safetensors | |
| 00ebf3cc96941d1beabab8fe5c29b84d1ae55eb19fa83fb2626da498fb333c80 model-part-00016.safetensors | |
| 1b7975b28cbf78c9cc47738ed708c040a9d4ba8cdc9a9e9ea89a7f8b53e0618a model-part-00017.safetensors | |
| 0a939c537f395d2fa1001ada1c88e25f6c1db983a82de68159a058565fc17038 model-part-00018.safetensors | |
| 02afa2b20661da671fd5414fdd35bdc6ae6aac7cea1d269a2051509c4ef451ad model-part-00019.safetensors | |
| f94171afe4cc7e8a03c79832db12fde700e5b234970738c53df22d6afc271c97 model-part-00020.safetensors | |
| 72b099e3f28a1828e8dd0cd2976c56e2c8c140d93c19f12007cc42fe2b2e11ef model-part-00021.safetensors | |
| 431619aacfa0cc19b7f6445c9f8192db445a111d6c5bdf7459adaad4716df182 model-part-00022.safetensors | |
| fa5ec7fde7bddbcf6bc3d0fda479680fa5edd42a8ccf5cf287e9b0e51176806c model-part-00023.safetensors | |
| 4b195b5e07a9006fed7d8f40c8177d36b933dab6f6af85fbc00646652c2d2c50 model-part-00024.safetensors | |
| d3319d7f18b3c896ce47b4bd61d3d6282fdf238f0c1d92f58dc438e4c4884eb0 model-part-00025.safetensors | |
| 7cf74c251182e557479d1052821374e8fafb168a672ad545448853a688ac6a2d model-part-00026.safetensors | |
| fce8ecdfb256f6a7a0bb3443079234ccd855a0f7a8e82e44e283629585069717 model-part-00027.safetensors | |
| d63e3c3c3394650e2a0334ac43f9c4517082d0cde796e1c8382d7b839b5ac2f1 model-part-00028.safetensors | |
| 9c87ecc62f3ec4697a9284300b077733af456a547f1a6200dc1fdcae05aeb374 model-part-00029.safetensors | |
| c30547e6b9b59dd04dc68472517f047cf56e5163a7489be67323b0a60227305f model-part-00030.safetensors | |
| 1342ac3f0ca9fa879752f443b23bd66bdd8f3110b060c4f68af8dd95bd20fab1 model-part-00031.safetensors | |
| 6523332cc7215bc22633aea44f4e93fcd817be9e803f656f0d63a38f81f31eb1 model-part-00032.safetensors | |
| 9cc0041e444b07f3996f99c97384826d4edcdc3f013f727216b12b1aa6777e6b model-part-00033.safetensors | |
| b34351eaa9094fd0332f711a9fdb6347f59521ac0490b39895ae9c670282c80f model-part-00034.safetensors | |
| 5df0115f977249061ca2987a15ec156f202f1201423aad226a4b00b173764c82 model-part-00035.safetensors | |
| c0f392bdd3206909cf8559939a4138272f2ea1e873f436b31ba9e33889ba3c1c model-part-00036.safetensors | |
| 43b9421c94ce8265a67c4051ed697c8d49c0830792b8c4f0ec76556365abbc9b model-part-00037.safetensors | |
| 7219c698167444ada9f15c7b9e87500acf5f098cae4936231ad281c9e9abcd08 model-part-00038.safetensors | |
| 010754fccd97afd809b4085bd599099080e33ad35d257e30fdc7216cbb1c2a74 model-part-00039.safetensors | |
| 07c7be7e38b36ce743d88cb73d46d5ad52a12afc986151dea5599e4d434ec447 model-part-00040.safetensors | |
| ae1e61600f66504edb123b4057f28e5ea0d123da36943823abc17a1bfac20a74 model-part-00041.safetensors | |
| b5bb9d3fbef6384df46239b92df6ab2fd4d980e53a5e20d8e770b49c331b8656 model-part-00042.safetensors | |
| 952f83df2701b58a66345b61ec0c0438f8acd054a1479f13e7f09ce314dbf804 model-part-00043.safetensors | |
| cfe9ead8164468dc15c0ec7578a6210a07cd90ff6da04b6bdff5bc67b65b8807 model-part-00044.safetensors | |
| 9128f42bce010e4cee5e5ec86f1c9b128dd322b7dbcf6647b85b4e04e5c221b1 model-part-00045.safetensors | |
| 4aff2dc240df5d25e6c1315c37b05a5080a63dc07a4defc308433db8b117868b model-part-00046.safetensors | |
| 5224ade6ed16ffc92929aee2fbd1b035030934f78a9be854bab87968e978bb63 model-part-00047.safetensors | |
| d4758ce9890d139ac1fe08b8bdaad6938bca09b877d560ce1a33250ec3db8318 model-part-00048.safetensors | |
| 6b062c6df34d833cc54379ff7ed635d16fdc434ea830237520791a44d501b0db model-part-00049.safetensors | |
| 30356bc71ef1fefaae1629d67a76fdce52bfd41e1350f6c3714fccd241e37c0e model-part-00050.safetensors | |
| 284652f01543e0d26288a2202baf89e6c26c804c23082dbfe53d6f9d024e0a02 model-part-00051.safetensors | |
| ef35a780d5cf5c2fd1f9bf161934e6be09016823248e6bf6eeb4e49d982f67b7 model-part-00052.safetensors | |
| 1145fc8c99171f71c8ba8d1a0612701eff74b5c4a69c5c0a0b85389f538d9537 model-part-00053.safetensors | |
| 6c203693250b9fae7f95b161152f752a9f606f985a044de47480b7d14e32374e model-part-00054.safetensors | |
| de4086d48817477d6aa434003f426d1f3cf3725cc0e7e57921e6036d698348c8 model.safetensors.index.json | |
| 27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516 preprocessor_config.json | |
| 0997f410c57a1f4e53b09e4be8f4a172d90edd9564368fb0847030937229b9f3 tokenizer.json | |
| b11349aafa7cdc6a320767cf7ceb29ed82f7eda5d65e8e0819e76f0ce947bf27 tokenizer_config.json | |
| 7768af27c1fafa9cc9011c1dc20067e03f8915e03b63504550e11d5066986d13 video_preprocessor_config.json | |
| ce99b4cb2983d118806ce0a8b777a35b093e2000a503ebde25853284c9dfa003 vocab.json | |