Image-Text-to-Text
Transformers
Safetensors
qwen3_5
phai-ide
science
code
tool-use
sft
lora
conversational
Instructions to use AItonomy/PhAI-IDE-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AItonomy/PhAI-IDE-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AItonomy/PhAI-IDE-9B") 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("AItonomy/PhAI-IDE-9B") model = AutoModelForMultimodalLM.from_pretrained("AItonomy/PhAI-IDE-9B", 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 AItonomy/PhAI-IDE-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AItonomy/PhAI-IDE-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AItonomy/PhAI-IDE-9B", "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/AItonomy/PhAI-IDE-9B
- SGLang
How to use AItonomy/PhAI-IDE-9B 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 "AItonomy/PhAI-IDE-9B" \ --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": "AItonomy/PhAI-IDE-9B", "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 "AItonomy/PhAI-IDE-9B" \ --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": "AItonomy/PhAI-IDE-9B", "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 AItonomy/PhAI-IDE-9B with Docker Model Runner:
docker model run hf.co/AItonomy/PhAI-IDE-9B
Commit History
-
Remove the final Citations section from README
Verified signatureRemove the trailing Citations heading, explanatory sentence, and BibTeX entries. Preserve all preceding README content.9ca2c2c -
Link training data to the ScienceIDE GitHub repository (#7)
- Link training data to the ScienceIDE GitHub repository (c4829cb60e8de2e6d3e6c54b6af76057a787cea0)59c8abd -
Make the scientific-environment table compact (#6)
- Make the scientific-environment table compact (611a8f92ac96b1544331be56db3951c880736ae6)766a201 -
Use one environment table with explicit Qwen and PhAI-IDE model pairs (#5)
- Name Qwen baselines and clarify evaluated environment scope (eda9a8c8a98723f9bd8debe70ae04daf9e44487d) - Use explicit Qwen baselines in environment comparisons (726ad09beca49ab995a428e6a336410a16f65f32) - Use one environment table with explicit Qwen and PhAI-IDE model pairs (c125263f6f473787d2017067bf4193bea942cba9)a495a64 -
Remove additional 4B and 9B training settings from README (#4)
- Remove additional 4B and 9B training settings from README (1bda5326896f46cfc39d6c7a27c29105cfb7f11b)e42478c -
Unify README for the PhAI-IDE model family (#3)
- Unify README for the PhAI-IDE model family (a8d9028e46d902a0afb6f87d06db015aee87dc2f) - Add benchmark gains in compact model-level tables (2e6231349962b65ff123891d1073c33f6dd530c3) - Compact published-model comparisons; preserve science results table (22ac5810fef18a5659243d60fe6fbd12d99bde6c) - Simplify published comparisons to complete benchmark configurations (71fa2251880b5797df4c64c15ece90427f91383e)7958390 -
Update README with verified ScienceAccelBench results (#2)
- Update README with verified ScienceAccelBench results (9981657632d6fae195a661ce4f2aef4a782539cd)8521ab9 -
Update PhAI-IDE-9B model card (#1)
- Update PhAI-IDE-9B model card (00d9b8f328bc6f8f5ed125fcb92ce536b2891765)18b17d6 -
Add PhAI-IDE-9B model card
Verified signature42f93b9
-
Add PhAI-IDE-9B configuration and tokenizer assets
Verified signature13c7612 -
Add verified 9B weight shard index
Verified signatureaa089e2 -
Add JEPA-Anything-9B model.safetensors-00004-of-00004.safetensors
Verified signaturea74bec8 -
Add JEPA-Anything-9B model.safetensors-00003-of-00004.safetensors
Verified signatureb426633 -
Add JEPA-Anything-9B model.safetensors-00002-of-00004.safetensors
Verified signature4dfc1e8 -
Add JEPA-Anything-9B model.safetensors-00001-of-00004.safetensors
Verified signature2456981 -
initial commit
Verified signature33ed786