Instructions to use adept/fuyu-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adept/fuyu-8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="adept/fuyu-8b")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("adept/fuyu-8b") model = AutoModelForMultimodalLM.from_pretrained("adept/fuyu-8b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use adept/fuyu-8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adept/fuyu-8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adept/fuyu-8b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/adept/fuyu-8b
- SGLang
How to use adept/fuyu-8b 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 "adept/fuyu-8b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adept/fuyu-8b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "adept/fuyu-8b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adept/fuyu-8b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use adept/fuyu-8b with Docker Model Runner:
docker model run hf.co/adept/fuyu-8b
Commit History
-
Update README.md
f41defe -
Update README.md
f60dcfe
-
Update added_tokens.json (#18)
- Update added_tokens.json (c946caabc1e6a6fa560913b19129960d347b5af2) Co-authored-by: Arthur Zucker <ArthurZ@users.noreply.huggingface.co>ddcacbc
-
Update README.md
5bbae38
-
Update README.md (#13)
- Update README.md (b5c3f7253e2e78da0da77a21d7e8dce15d9abe23) - Update README.md (04ceb1317abd49bfddc29f8f15220eeda5307708) Co-authored-by: Arushi Somani <somaniarushi@users.noreply.huggingface.co>3f6c7a7 -
Fix license (#11)
- Fix license (16bd66b2f64ec55e47152b502c0b184ca3d70560) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>f4f9521
-
Upload folder using huggingface_hub (#3)
- Upload folder using huggingface_hub (cc65a5db8a0f8b99401973c20df215b7302c0ff6)dae6a1e -
Update README.md
edit readme8eaa504 -
Update README.md (#5)
- Update README.md (1f2533a6df0cbb471cab029fd8bb0c259e3d7a81) Co-authored-by: Bill Chambers <bllchmbrs@users.noreply.huggingface.co>93450b3 -
Upload processor (#4)
- Upload processor (5451064815e2cd3556354241f2f4a45c7c658cf0) Co-authored-by: Pablo Montalvo <Molbap@users.noreply.huggingface.co>8a9d74e -
Update README.md
add note about newline6259495 -
Update README.md
added context on the tokens441de68 -
Update README.md
note for PRac8950d -
Update eos to `|ENDOFTEXT|`
d804d9c -
only decode the end of the generation
mtensor3856d86 -
clean up
mtensor8c4b5c5 -
readme
mtensorf06da25 -
readme
mtensor52b5684 -
add examples to readme
mtensor860995a -
add bus
mtensor03212a3 -
added files
mtensorb229261 -
fix readme
5d6d122 -
make README nice
73445a4
-
Create model card
I'm not totally sure what I'm supposed to do here, so I've put in the minimal amount of info.08f1c77 -
Upload folder using huggingface_hub
6859cfe -
initial commit
cd2a0d7