Instructions to use Nithish2410/word_weight_without with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nithish2410/word_weight_without with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Nithish2410/word_weight_without") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Nithish2410/word_weight_without") model = AutoModelForMultimodalLM.from_pretrained("Nithish2410/word_weight_without") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Nithish2410/word_weight_without with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nithish2410/word_weight_without" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nithish2410/word_weight_without", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Nithish2410/word_weight_without
- SGLang
How to use Nithish2410/word_weight_without 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 "Nithish2410/word_weight_without" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nithish2410/word_weight_without", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Nithish2410/word_weight_without" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nithish2410/word_weight_without", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Nithish2410/word_weight_without with Docker Model Runner:
docker model run hf.co/Nithish2410/word_weight_without
Ctrl+K
- checkpoint-100
- checkpoint-1000
- checkpoint-1050
- checkpoint-1100
- checkpoint-1150
- checkpoint-1200
- checkpoint-1250
- checkpoint-1300
- checkpoint-1350
- checkpoint-1400
- checkpoint-1450
- checkpoint-150
- checkpoint-1500
- checkpoint-1550
- checkpoint-1600
- checkpoint-1650
- checkpoint-1700
- checkpoint-1750
- checkpoint-1800
- checkpoint-1850
- checkpoint-1900
- checkpoint-1950
- checkpoint-200
- checkpoint-2000
- checkpoint-2050
- checkpoint-2100
- checkpoint-2150
- checkpoint-2200
- checkpoint-2250
- checkpoint-2300
- checkpoint-2350
- checkpoint-2400
- checkpoint-2450
- checkpoint-250
- checkpoint-2500
- checkpoint-2550
- checkpoint-2600
- checkpoint-2650
- checkpoint-2700
- checkpoint-2750
- checkpoint-2800
- checkpoint-2850
- checkpoint-2900
- checkpoint-300
- checkpoint-350
- checkpoint-400
- checkpoint-450
- checkpoint-50
- checkpoint-500
- checkpoint-550