Instructions to use diffusion-gif/trick-prediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use diffusion-gif/trick-prediction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="diffusion-gif/trick-prediction")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("diffusion-gif/trick-prediction", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use diffusion-gif/trick-prediction with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "diffusion-gif/trick-prediction" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "diffusion-gif/trick-prediction", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/diffusion-gif/trick-prediction
- SGLang
How to use diffusion-gif/trick-prediction 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 "diffusion-gif/trick-prediction" \ --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": "diffusion-gif/trick-prediction", "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 "diffusion-gif/trick-prediction" \ --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": "diffusion-gif/trick-prediction", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use diffusion-gif/trick-prediction with Docker Model Runner:
docker model run hf.co/diffusion-gif/trick-prediction
Commit History
4 days ago
-
data: attach pinned training dataset index and safe recovery helpers
Verified signature02a39fb
5 days ago
-
publish: all model shards complete and public checksum manifest
Verified signaturec95a4d5 -
publish: legacy_sft_step900/model-00010-of-00012.safetensors
Verified signature473468e -
publish: legacy_sft_step900/model-00009-of-00012.safetensors
Verified signaturebfd2c67 -
publish: legacy_sft_step900/model-00008-of-00012.safetensors
Verified signature01492d5 -
publish: legacy_sft_step900/model-00007-of-00012.safetensors
Verified signature26c5912 -
publish: legacy_sft_step900/model-00005-of-00012.safetensors
Verified signature2a558c5 -
publish: legacy_sft_step900/model-00004-of-00012.safetensors
Verified signature5d51ecc -
publish: legacy_sft_step900/model-00003-of-00012.safetensors
Verified signature34517a4 -
publish: legacy_grpo_step250/model-00010-of-00012.safetensors
Verified signature163b532 -
publish: legacy_grpo_step250/model-00007-of-00012.safetensors
Verified signatured0b9726 -
publish: legacy_grpo_step250/model-00003-of-00012.safetensors
Verified signature2cb79bd -
publish: legacy_grpo_step250/model-00002-of-00012.safetensors
Verified signaturef2e4ae3 -
publish: legacy_grpo_step250/model-00001-of-00012.safetensors
Verified signature76003ea -
publish: model-only documentation and upstream license notices
Verified signature5a7e141
6 days ago
-
docs: mark trajectory checkpoint upload incomplete due to private storage quota
Verified signatureee19132 -
init: trajectory prediction checkpoint legacy_sft_step900/model-00006-of-00012.safetensors
Verified signatureafbea9c -
init: trajectory prediction checkpoint legacy_sft_step900/model-00011-of-00012.safetensors
Verified signatureb3c9d8b -
init: trajectory prediction checkpoint legacy_grpo_step250/model-00011-of-00012.safetensors
Verified signature5637874 -
init: trajectory prediction checkpoint legacy_grpo_step250/model-00005-of-00012.safetensors
Verified signaturedd40787 -
init: trajectory prediction checkpoint legacy_grpo_step250/model-00004-of-00012.safetensors
Verified signatureeeeb6d1 -
init: trajectory prediction checkpoint legacy_grpo_step250/model-00008-of-00012.safetensors
Verified signaturebbcdd61 -
init: trajectory prediction checkpoint legacy_grpo_step250/model-00006-of-00012.safetensors
Verified signaturea4b6f3d -
init: trajectory prediction checkpoint legacy_sft_step900/model-00002-of-00012.safetensors
Verified signature441acac -
init: trajectory prediction checkpoint legacy_grpo_step250/model-00009-of-00012.safetensors
Verified signature7bc484b -
init: trajectory prediction checkpoint legacy_sft_step900/model-00012-of-00012.safetensors
Verified signature298f6bb -
init: trajectory prediction checkpoint legacy_sft_step900/model-00001-of-00012.safetensors
Verified signature6002d82 -
init: trajectory prediction checkpoint legacy_grpo_step250/model-00012-of-00012.safetensors
Verified signature24d42bb -
init: trajectory prediction legacy SFT/GRPO model metadata
Verified signature7be70d4 -
initial commit
Verified signature8837bc7