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
Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- model-part-00002.safetensors +3 -0
- model-part-00003.safetensors +3 -0
- model-part-00004.safetensors +3 -0
- model-part-00006.safetensors +3 -0
- model-part-00009.safetensors +3 -0
- model-part-00010.safetensors +3 -0
- model-part-00012.safetensors +3 -0
- model-part-00014.safetensors +3 -0
- model-part-00016.safetensors +3 -0
- model-part-00019.safetensors +3 -0
- model-part-00020.safetensors +3 -0
- model-part-00022.safetensors +3 -0
- model-part-00024.safetensors +3 -0
- model-part-00030.safetensors +3 -0
- model-part-00032.safetensors +3 -0
- model-part-00034.safetensors +3 -0
- model-part-00040.safetensors +3 -0
- model-part-00042.safetensors +3 -0
- model-part-00046.safetensors +3 -0
- model-part-00049.safetensors +3 -0
- model-part-00050.safetensors +3 -0
- model-part-00052.safetensors +3 -0
- mtp.safetensors +3 -0
- tokenizer.json +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
model-part-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a773f18b2ce598327aac20843ea2589e7d656e0ccabbdf5f71b1587018604b9e
|
| 3 |
+
size 5085593752
|
model-part-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdf9df3f826223b82a66469d2b4e98fc0036631d08deb2012482ad0e1d80fd91
|
| 3 |
+
size 5085593728
|
model-part-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25ac351e4e294aecc3f162969be0dfe2274d7dd159ee4a01315ebee85c452665
|
| 3 |
+
size 1791129440
|
model-part-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82f22b5686afc704be19ff7d2840118e9ab96d0261f0ed23ec6864de35a00831
|
| 3 |
+
size 1950569856
|
model-part-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:973aeca6a6cb417053687dc25049f33442c04a902b5f5241849582f02b628ce4
|
| 3 |
+
size 1950569856
|
model-part-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7677751226938a6e977d20bfa901189c821a2dc3c7332b2591e5d925627d4321
|
| 3 |
+
size 1906497688
|
model-part-00012.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54a4391c27541aaf695b5205e76dbebc09d4aaba099d16dc1da8bd6ff20c03bf
|
| 3 |
+
size 2118374720
|
model-part-00014.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15b95470dbe3bc413d0ba0037104d2ddf4e81dfc3b02067599020e9dfc109dae
|
| 3 |
+
size 1950569880
|
model-part-00016.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1625715a17d676346ea0ecfe089c2c26f58780f1198644732804661cb9b2b896
|
| 3 |
+
size 2074302560
|
model-part-00019.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b15be5e18cbe73700ba9f8525187b94eb311b4c8e48b4c4b79c898195a8d4fd2
|
| 3 |
+
size 2076420888
|
model-part-00020.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6844984a8b5988a8795e8b7e2f15ff9ec217fffdce247b3f2ed2e51c3c4e4e5
|
| 3 |
+
size 1948636752
|
model-part-00022.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23a540c14698583389168be432281b23b16c3a715607408cf2f5ef42353fbf4b
|
| 3 |
+
size 1950569880
|
model-part-00024.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:125f51ef46a335e62b5d4124d7e3c7d38ac442d9c2f619241036a660fd12952a
|
| 3 |
+
size 1908659416
|
model-part-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:190385635ad6f0890c665674ea01a0462c339a5e2071ef01cdfbe0e6a5e9d7c4
|
| 3 |
+
size 2099511048
|
model-part-00032.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6dc940aff3f47a57682d619527b07ba4022408df8deb41c5256f024536c2cecb
|
| 3 |
+
size 1845538336
|
model-part-00034.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e92116bb742ff137443b5fbdb67b04a16d3131da013510bac5205d621031d2f
|
| 3 |
+
size 2143256648
|
model-part-00040.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:323a99fc58282711fd150ad0b2de276fe1340bdaea9113f39f0d4979a790e1c5
|
| 3 |
+
size 2143256648
|
model-part-00042.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e96d283e5e14aaf36c8b4942b55dfa2b6f03773ab5c4028414c5815af82d300
|
| 3 |
+
size 2099511048
|
model-part-00046.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c5d0edcf096e170970c163cd845c4f42db99cd30dd845169c6eb79c840cc05f
|
| 3 |
+
size 2143256648
|
model-part-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa7a08af20289f5f3077969ddc3f5cf53ea4d6a66802d29ed111ce2282fae763
|
| 3 |
+
size 2143256648
|
model-part-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89f3cf6a044126cc99aeee2090d5597b73c5d417ef52611d7b09077b02de8bb8
|
| 3 |
+
size 1845538336
|
model-part-00052.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87cd4cb70dadc02745b17967a29274fceddcc150b3c8145979efea78f8f7676f
|
| 3 |
+
size 2143256648
|
mtp.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7454f34b3a0cf80ceb03adc97d48dfba7644bec0f44c3a5f06182b06df4b7e2b
|
| 3 |
+
size 1698799216
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0997f410c57a1f4e53b09e4be8f4a172d90edd9564368fb0847030937229b9f3
|
| 3 |
+
size 12809320
|