Instructions to use ChayanM/Swin-GPT2_Mimic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChayanM/Swin-GPT2_Mimic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ChayanM/Swin-GPT2_Mimic")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("ChayanM/Swin-GPT2_Mimic") model = AutoModelForMultimodalLM.from_pretrained("ChayanM/Swin-GPT2_Mimic", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ChayanM/Swin-GPT2_Mimic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ChayanM/Swin-GPT2_Mimic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ChayanM/Swin-GPT2_Mimic", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ChayanM/Swin-GPT2_Mimic
- SGLang
How to use ChayanM/Swin-GPT2_Mimic 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 "ChayanM/Swin-GPT2_Mimic" \ --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": "ChayanM/Swin-GPT2_Mimic", "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 "ChayanM/Swin-GPT2_Mimic" \ --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": "ChayanM/Swin-GPT2_Mimic", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ChayanM/Swin-GPT2_Mimic with Docker Model Runner:
docker model run hf.co/ChayanM/Swin-GPT2_Mimic
Commit History
-
Training in progress, epoch 14
Verified signaturee4ca4cd -
Training in progress, epoch 13
Verified signatureaba0ae5 -
Training in progress, epoch 12
Verified signatured119cef -
Training in progress, epoch 11
Verified signature536c8dd -
Training in progress, epoch 10
Verified signature9b2327c -
Training in progress, epoch 9
Verified signature81978f1 -
Training in progress, epoch 8
Verified signature9adf18d
-
Training in progress, epoch 7
Verified signature889d301 -
Training in progress, epoch 6
Verified signatured8c6186 -
Training in progress, epoch 5
Verified signaturee0ff8ec -
Training in progress, epoch 4
Verified signature2e1b3cf -
Training in progress, epoch 3
Verified signature19d7729 -
Training in progress, epoch 2
Verified signature20fd9c0 -
Training in progress, epoch 1
Verified signature9bdfd0b -
initial commit
Verified signature05215f1