Instructions to use starriver030515/FUSION-LLaMA3.1-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use starriver030515/FUSION-LLaMA3.1-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="starriver030515/FUSION-LLaMA3.1-8B") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("starriver030515/FUSION-LLaMA3.1-8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use starriver030515/FUSION-LLaMA3.1-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "starriver030515/FUSION-LLaMA3.1-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "starriver030515/FUSION-LLaMA3.1-8B", "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/starriver030515/FUSION-LLaMA3.1-8B
- SGLang
How to use starriver030515/FUSION-LLaMA3.1-8B 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 "starriver030515/FUSION-LLaMA3.1-8B" \ --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": "starriver030515/FUSION-LLaMA3.1-8B", "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 "starriver030515/FUSION-LLaMA3.1-8B" \ --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": "starriver030515/FUSION-LLaMA3.1-8B", "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 starriver030515/FUSION-LLaMA3.1-8B with Docker Model Runner:
docker model run hf.co/starriver030515/FUSION-LLaMA3.1-8B
Download training_args.bin from starriver030515/FUSION-LLaMA3.1-8B: direct link, hf CLI and curl.
- Browser
- Download file 7.48 kB
-
https://huggingface.co/starriver030515/FUSION-LLaMA3.1-8B/resolve/main/training_args.bin
- Command line
-
hf download hf://starriver030515/FUSION-LLaMA3.1-8B/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/starriver030515/FUSION-LLaMA3.1-8B/resolve/main/training_args.bin
7.48 kB
- Xet hash:
- 34111ca73f9f4f9bc09cc26c265474fe7c43d0d94e27be0fc6f158ce9825c514
- Size of remote file:
- 7.48 kB
- SHA256:
- a00a6c3e3783e80125e463c33c243a874d861aad7213d4a2a4734a82ed3881d8
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.