Instructions to use YingxuHe/git-base-test3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YingxuHe/git-base-test3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="YingxuHe/git-base-test3")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("YingxuHe/git-base-test3") model = AutoModelForMultimodalLM.from_pretrained("YingxuHe/git-base-test3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use YingxuHe/git-base-test3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "YingxuHe/git-base-test3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YingxuHe/git-base-test3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/YingxuHe/git-base-test3
- SGLang
How to use YingxuHe/git-base-test3 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 "YingxuHe/git-base-test3" \ --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": "YingxuHe/git-base-test3", "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 "YingxuHe/git-base-test3" \ --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": "YingxuHe/git-base-test3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use YingxuHe/git-base-test3 with Docker Model Runner:
docker model run hf.co/YingxuHe/git-base-test3
Commit History
-
Adding `safetensors` variant of this model
This 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.7545b65 -
Training in progress, step 11000
02119b3 -
Training in progress, step 10500
851075e -
Training in progress, step 10000
db14cf5 -
Training in progress, step 9500
09474a5 -
Training in progress, step 9000
31b5f61 -
Training in progress, step 8500
2fd2218 -
Training in progress, step 8000
fd939a3 -
Training in progress, step 7500
f6abcb0 -
Training in progress, step 7000
688f5e2 -
Training in progress, step 6500
d6fe1b4 -
Training in progress, step 6000
a58143f -
Training in progress, step 5500
a18146e -
Training in progress, step 5000
c35cd0d -
Training in progress, step 4500
82ab0b5 -
Training in progress, step 4000
164f60d -
Training in progress, step 3500
dd8dfe6 -
Training in progress, step 3000
302ef2e -
Training in progress, step 2500
c33ef32 -
Training in progress, step 2000
09329b2 -
Training in progress, step 1500
a3a4c3a -
Training in progress, step 1000
b9858a0 -
Training in progress, step 500
ee9fb98 -
Training in progress, step 300
9673c92 -
Training in progress, step 250
7c7d088 -
Training in progress, step 200
8e2beef -
Training in progress, step 150
b354a94 -
Training in progress, step 100
ab3cbc0 -
Training in progress, step 50
cbebfbb -
Training in progress, step 50
638da9b -
Training in progress, step 50
9ab3162 -
Training in progress, step 50
7b71355 -
initial commit
e5569a3