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
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.f303b45
-
End of training
72540cb -
Training in progress, epoch 10
62ad2c5 -
Training in progress, epoch 8
bc6f6c4 -
Training in progress, epoch 6
07a505f -
Training in progress, epoch 4
c0c4bf9 -
Training in progress, epoch 2
da9ac15 -
Training in progress, epoch 1
8ee3cdb -
End of training
2c04167 -
Training in progress, epoch 5
15f1482 -
Training in progress, epoch 3
87abe83 -
Training in progress, epoch 1
14f7d9b -
End of training
90ebda7 -
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 -
End of training
cae469a -
Training in progress, epoch 5
9fddc4a -
Training in progress, epoch 4
acbb2e5 -
Training in progress, epoch 3
a28ecff -
Training in progress, epoch 2
0c770ad -
Training in progress, epoch 1
245a475 -
Training in progress, epoch 2
e9ffb26 -
Training in progress, epoch 1
7da8e8b -
Training in progress, epoch 7
508c953 -
Training in progress, epoch 6
6fd5b29 -
Training in progress, epoch 5
e90f552 -
Training in progress, epoch 4
fd2526c -
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 -
End of training
1ce79f4 -
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