Image-Text-to-Text
Transformers
Safetensors
qwen3_5_moe
agent
agentic
co-work
tool-use
long-context
mixture-of-experts
coding
conversational
Instructions to use Accio-Lab/occamy-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Accio-Lab/occamy-1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Accio-Lab/occamy-1.0") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Accio-Lab/occamy-1.0") model = AutoModelForMultimodalLM.from_pretrained("Accio-Lab/occamy-1.0", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Accio-Lab/occamy-1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Accio-Lab/occamy-1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Accio-Lab/occamy-1.0", "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/Accio-Lab/occamy-1.0
- SGLang
How to use Accio-Lab/occamy-1.0 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 "Accio-Lab/occamy-1.0" \ --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": "Accio-Lab/occamy-1.0", "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 "Accio-Lab/occamy-1.0" \ --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": "Accio-Lab/occamy-1.0", "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 Accio-Lab/occamy-1.0 with Docker Model Runner:
docker model run hf.co/Accio-Lab/occamy-1.0
| 3ace02b07573d3d141bb7f0d53a7dd1d model-00000-of-00013.safetensors | |
| 1c388faed4e87957b8aba95ee541318e model-00001-of-00013.safetensors | |
| e57cebbe1db94877bb7323588687f89e model-00002-of-00013.safetensors | |
| 76c2db3d47bd14df68753a536e147bd2 model-00003-of-00013.safetensors | |
| c6478fad4fe663c1a97f86bdbe0b0c79 model-00004-of-00013.safetensors | |
| 637785713be9adca319f22fc01e7279d model-00005-of-00013.safetensors | |
| 1fd06564b076813c6eca7e3cc3e53d0f model-00006-of-00013.safetensors | |
| 1f04b9800a04ba7acda5af720278fb96 model-00007-of-00013.safetensors | |
| 6d0786e87a79b8473822ab71b9e43b2e model-00008-of-00013.safetensors | |
| 8f66189bffed12c6db396e64c84a1263 model-00009-of-00013.safetensors | |
| 1c93dc29cd94f0a343395a4fab9f3a97 model-00010-of-00013.safetensors | |
| 468bc183238ae4e4ac63fcabad7c2a04 model-00011-of-00013.safetensors | |
| 9880f5c8426f48d7b4b2bc7aa6ca4dcd model-00012-of-00013.safetensors | |
| 85a8195cb62eb3c2defeec116e932fd4 model-visual.safetensors | |
| 71907987995f2e795e75ad209c5b0a67 config.json | |
| ee5cbd04766beddae4f5b656ead81fa5 model.safetensors.index.json | |
| 7bcaedf726a05924595b0302d0dd4dc7 preprocessor_config.json | |
| 0c49ac5889183510aa4a1ad947d302f8 processor_config.json | |
| 9875abe48fcffcda8e3e21bcfad4466d tokenizer_config.json | |
| 4010c9c068169f29bca5d89c5d8e967c tokenizer.json | |