Instructions to use alantao912/models-moved with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alantao912/models-moved with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="alantao912/models-moved")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("alantao912/models-moved") model = AutoModelForMultimodalLM.from_pretrained("alantao912/models-moved", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use alantao912/models-moved with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alantao912/models-moved" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alantao912/models-moved", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/alantao912/models-moved
- SGLang
How to use alantao912/models-moved 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 "alantao912/models-moved" \ --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": "alantao912/models-moved", "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 "alantao912/models-moved" \ --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": "alantao912/models-moved", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use alantao912/models-moved with Docker Model Runner:
docker model run hf.co/alantao912/models-moved
Commit History
-
update model card README.md
a705816 -
Training in progress, step 180
696116e
-
Training in progress, step 170
89f2930 -
Training in progress, step 160
6aea063 -
Training in progress, step 150
a1e55ee -
Training in progress, step 140
b45c1dc -
Training in progress, step 130
23641af -
Training in progress, step 120
ad4389f -
Training in progress, step 110
c58359a -
Training in progress, step 100
f862c15 -
Training in progress, step 90
5914877 -
Training in progress, step 80
5149eab -
Training in progress, step 70
89c4203 -
Training in progress, step 60
a13e45b -
Training in progress, step 50
c14b2df -
Training in progress, step 40
648384d -
Training in progress, step 30
f2f79bb -
Training in progress, step 20
ca534c1 -
Training in progress, step 10
4501659 -
initial commit
ce767e3