Instructions to use HaiderK/Assignment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HaiderK/Assignment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HaiderK/Assignment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("HaiderK/Assignment") model = AutoModelForMultimodalLM.from_pretrained("HaiderK/Assignment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HaiderK/Assignment with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HaiderK/Assignment" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HaiderK/Assignment", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HaiderK/Assignment
- SGLang
How to use HaiderK/Assignment 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 "HaiderK/Assignment" \ --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": "HaiderK/Assignment", "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 "HaiderK/Assignment" \ --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": "HaiderK/Assignment", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HaiderK/Assignment with Docker Model Runner:
docker model run hf.co/HaiderK/Assignment
Commit History
-
Training in progress, epoch 5
1bb0992 -
Training in progress, epoch 4
6c0df37 -
Training in progress, epoch 3
94bef95 -
Training in progress, epoch 2
dee2717 -
Training in progress, epoch 1
cfd3c89 -
Training in progress, epoch 2
0c770ad -
Training in progress, epoch 1
245a475 -
Training in progress, epoch 3
8515dc1 -
Training in progress, epoch 2
57cc721 -
Training in progress, epoch 1
9547809 -
End of training
028292c -
Training in progress, epoch 1
16f9109 -
Training in progress, epoch 10
38b5a9c -
Training in progress, epoch 9
8e94476 -
Training in progress, epoch 7
c3a0d22 -
Training in progress, epoch 6
aad5e39 -
Training in progress, epoch 5
252bd43 -
Training in progress, epoch 4
7aef4b3 -
Training in progress, epoch 3
ce346e8 -
Training in progress, epoch 2
7c58a58 -
Training in progress, epoch 1
0316b17 -
End of training
88cf8ed -
Training in progress, epoch 24
c790520 -
Training in progress, epoch 23
62407a8 -
Training in progress, epoch 22
d95bdab -
Training in progress, epoch 21
7f02910 -
Training in progress, epoch 20
18f5212 -
Training in progress, epoch 19
10250c1 -
Training in progress, epoch 18
78a1363 -
Training in progress, epoch 17
74ff4f8 -
Training in progress, epoch 16
9c57c69 -
Training in progress, epoch 14
2202e4c -
Training in progress, epoch 13
c4e5ab5 -
Training in progress, epoch 11
d736450 -
Training in progress, epoch 9
dbcc2fd -
Training in progress, epoch 8
1891a48 -
Training in progress, epoch 7
96fa006 -
Training in progress, epoch 6
ea7cfd5 -
Training in progress, epoch 5
b95e8a3 -
Training in progress, epoch 3
b28df8f -
Training in progress, epoch 2
96ea148 -
Training in progress, epoch 1
22ac592