Run this model with HF Jobs
Run GoaT3D/Imagination-2.1-Pro-Base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/GoaT3D/Imagination-2.1-Pro-Base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/GoaT3D/Imagination-2.1-Pro-Base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/GoaT3D/Imagination-2.1-Pro-Base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/GoaT3D/Imagination-2.1-Pro-Base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use GoaT3D/Imagination-2.1-Pro-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GoaT3D/Imagination-2.1-Pro-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="GoaT3D/Imagination-2.1-Pro-Base") 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("GoaT3D/Imagination-2.1-Pro-Base") model = AutoModelForMultimodalLM.from_pretrained("GoaT3D/Imagination-2.1-Pro-Base", 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 GoaT3D/Imagination-2.1-Pro-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GoaT3D/Imagination-2.1-Pro-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GoaT3D/Imagination-2.1-Pro-Base", "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/GoaT3D/Imagination-2.1-Pro-Base
- SGLang
How to use GoaT3D/Imagination-2.1-Pro-Base 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 "GoaT3D/Imagination-2.1-Pro-Base" \ --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": "GoaT3D/Imagination-2.1-Pro-Base", "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 "GoaT3D/Imagination-2.1-Pro-Base" \ --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": "GoaT3D/Imagination-2.1-Pro-Base", "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 GoaT3D/Imagination-2.1-Pro-Base with Docker Model Runner:
docker model run hf.co/GoaT3D/Imagination-2.1-Pro-Base
Commit History
15 days ago
-
Back up model-00019-of-00026.safetensors
Verified signaturef08f1af -
Back up model-00002-of-00026.safetensors
Verified signature9a84847 -
Back up chat_template.jinja
Verified signatureb669ff2 -
Back up preprocessor_config.json
Verified signature8fed69e -
Back up model-00015-of-00026.safetensors
Verified signature5083626 -
Back up video_preprocessor_config.json
Verified signatureb5cf990 -
Back up model-00017-of-00026.safetensors
Verified signature8f81ca5 -
Back up model-00026-of-00026.safetensors
Verified signature14df917 -
Back up README.md
Verified signature5b11588 -
Back up model-00009-of-00026.safetensors
Verified signature9ff8065 -
Back up config.json
Verified signaturec8c8daf -
Back up LICENSE
Verified signaturef1abdcf -
Back up model-00011-of-00026.safetensors
Verified signaturea6d50f9 -
Back up model.safetensors.index.json
Verified signature9aaab3d -
Back up tokenizer_config.json
Verified signature15db2c4 -
Back up merges.txt
Verified signaturec3904ef -
Back up model-00021-of-00026.safetensors
Verified signatureeb863de -
Back up generation_config.json
Verified signature67be7a0 -
Back up model-00013-of-00026.safetensors
Verified signature03772a6 -
Back up tokenizer.json
Verified signature31247e1 -
Back up configuration.json
Verified signature011f64e -
Back up model-00010-of-00026.safetensors
Verified signature2b72574 -
Back up vocab.json
Verified signaturefd87e85 -
Back up model-00007-of-00026.safetensors
Verified signature79c6397 -
Back up model-00016-of-00026.safetensors
Verified signature60c6a50 -
Back up model-00001-of-00026.safetensors
Verified signature9e652f5 -
Back up model-00025-of-00026.safetensors
Verified signature1c4bff6 -
Back up model-00018-of-00026.safetensors
Verified signature71a2f92 -
Back up model-00006-of-00026.safetensors
Verified signaturec747a4d -
Back up model-00008-of-00026.safetensors
Verified signatureac85006 -
Back up model-00014-of-00026.safetensors
Verified signatured251ec5 -
Back up model-00012-of-00026.safetensors
Verified signatured01dec7 -
Back up model-00005-of-00026.safetensors
Verified signature9236d7e -
Back up model-00023-of-00026.safetensors
Verified signatureb028c22 -
Back up model-00003-of-00026.safetensors
Verified signature0efbf03 -
Back up model-00020-of-00026.safetensors
Verified signature180862d -
Back up model-00022-of-00026.safetensors
Verified signature0b644ed -
Back up model-00024-of-00026.safetensors
Verified signatured7b4b54 -
Back up model-00004-of-00026.safetensors
Verified signature5f3111f -
initial commit
Verified signature46663bb