Instructions to use RantiRepo/Qwen2-VL-7B-ChartQAtesting with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use RantiRepo/Qwen2-VL-7B-ChartQAtesting with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-VL-7B-Instruct") model = PeftModel.from_pretrained(base_model, "RantiRepo/Qwen2-VL-7B-ChartQAtesting") - Transformers
How to use RantiRepo/Qwen2-VL-7B-ChartQAtesting with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RantiRepo/Qwen2-VL-7B-ChartQAtesting") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("RantiRepo/Qwen2-VL-7B-ChartQAtesting", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RantiRepo/Qwen2-VL-7B-ChartQAtesting with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RantiRepo/Qwen2-VL-7B-ChartQAtesting" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RantiRepo/Qwen2-VL-7B-ChartQAtesting", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RantiRepo/Qwen2-VL-7B-ChartQAtesting
- SGLang
How to use RantiRepo/Qwen2-VL-7B-ChartQAtesting 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 "RantiRepo/Qwen2-VL-7B-ChartQAtesting" \ --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": "RantiRepo/Qwen2-VL-7B-ChartQAtesting", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "RantiRepo/Qwen2-VL-7B-ChartQAtesting" \ --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": "RantiRepo/Qwen2-VL-7B-ChartQAtesting", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RantiRepo/Qwen2-VL-7B-ChartQAtesting with Docker Model Runner:
docker model run hf.co/RantiRepo/Qwen2-VL-7B-ChartQAtesting
Commit History
-
Update README.md
Verified signature8091089
-
Update README.md
Verified signatured05b8af -
Upload trainer_state.json with huggingface_hub
Verified signaturefe6bff0 -
Upload rng_state.pth with huggingface_hub
Verified signaturec101b4b -
Upload scheduler.pt with huggingface_hub
Verified signature3575144 -
Upload optimizer.pt with huggingface_hub
Verified signature9f78a90 -
Upload adapter_model.safetensors with huggingface_hub
Verified signature2d900ae -
Upload trainer_state.json with huggingface_hub
Verified signatureeef3cba -
Upload rng_state.pth with huggingface_hub
Verified signature7a91c99 -
Upload scheduler.pt with huggingface_hub
Verified signatureb222093 -
Upload optimizer.pt with huggingface_hub
Verified signature660ec37 -
Upload adapter_model.safetensors with huggingface_hub
Verified signature8ecf9e5 -
Upload trainer_state.json with huggingface_hub
Verified signature234bf0f -
Upload rng_state.pth with huggingface_hub
Verified signatureb02553c -
Upload scheduler.pt with huggingface_hub
Verified signature3c27fb1 -
Upload optimizer.pt with huggingface_hub
Verified signature79a3334 -
Upload adapter_model.safetensors with huggingface_hub
Verified signature961b32f -
Upload trainer_state.json with huggingface_hub
Verified signature026a6a7 -
Upload rng_state.pth with huggingface_hub
Verified signaturef98c676 -
Upload scheduler.pt with huggingface_hub
Verified signature0502fba -
Upload optimizer.pt with huggingface_hub
Verified signaturede54bc2 -
Upload adapter_model.safetensors with huggingface_hub
Verified signature8e80340 -
Upload trainer_state.json with huggingface_hub
Verified signature567e03a -
Upload rng_state.pth with huggingface_hub
Verified signaturef12bf2e -
Upload scheduler.pt with huggingface_hub
Verified signature156b71e -
Upload optimizer.pt with huggingface_hub
Verified signature3e205b0 -
Upload adapter_model.safetensors with huggingface_hub
Verified signaturebe2b0a0 -
Upload trainer_state.json with huggingface_hub
Verified signaturef77e207 -
Upload rng_state.pth with huggingface_hub
Verified signatureace217a -
Upload scheduler.pt with huggingface_hub
Verified signature7ec51ff -
Upload optimizer.pt with huggingface_hub
Verified signature67c079a -
Upload adapter_model.safetensors with huggingface_hub
Verified signaturea269f12 -
Upload trainer_state.json with huggingface_hub
Verified signature2b2e39d -
Upload rng_state.pth with huggingface_hub
Verified signature670041a -
Upload scheduler.pt with huggingface_hub
Verified signatureeb29943 -
Upload optimizer.pt with huggingface_hub
Verified signature6b2c3c7 -
Upload adapter_model.safetensors with huggingface_hub
Verified signature5f7a4aa -
Upload trainer_state.json with huggingface_hub
Verified signature439bbb2 -
Upload rng_state.pth with huggingface_hub
Verified signature539f296 -
Upload scheduler.pt with huggingface_hub
Verified signatureee5b781 -
Upload optimizer.pt with huggingface_hub
Verified signature2cf5e93 -
Upload adapter_model.safetensors with huggingface_hub
Verified signature7c2e6f3 -
Upload trainer_state.json with huggingface_hub
Verified signature0130358 -
Upload rng_state.pth with huggingface_hub
Verified signaturedb32db5 -
Upload scheduler.pt with huggingface_hub
Verified signatureb682644 -
Upload optimizer.pt with huggingface_hub
Verified signatureea17a8f -
Upload adapter_model.safetensors with huggingface_hub
Verified signature82898ce -
Upload README.md with huggingface_hub
Verified signature997d712 -
Upload training_args.bin with huggingface_hub
Verified signatureddaff27 -
Upload processor_config.json with huggingface_hub
Verified signaturef7e61c9