Instructions to use FreedomIntelligence/LongLLaVA-53B-A13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FreedomIntelligence/LongLLaVA-53B-A13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="FreedomIntelligence/LongLLaVA-53B-A13B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("FreedomIntelligence/LongLLaVA-53B-A13B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FreedomIntelligence/LongLLaVA-53B-A13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FreedomIntelligence/LongLLaVA-53B-A13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FreedomIntelligence/LongLLaVA-53B-A13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FreedomIntelligence/LongLLaVA-53B-A13B
- SGLang
How to use FreedomIntelligence/LongLLaVA-53B-A13B 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 "FreedomIntelligence/LongLLaVA-53B-A13B" \ --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": "FreedomIntelligence/LongLLaVA-53B-A13B", "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 "FreedomIntelligence/LongLLaVA-53B-A13B" \ --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": "FreedomIntelligence/LongLLaVA-53B-A13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FreedomIntelligence/LongLLaVA-53B-A13B with Docker Model Runner:
docker model run hf.co/FreedomIntelligence/LongLLaVA-53B-A13B
Commit History
-
Upload 2 files
Verified signature4892f12
-
Update README.md
Verified signatured962e61 -
Upload 6 files
Verified signatureb013ba5
-
Update README.md
Verified signaturea8e2fa6
-
Update README.md
Verified signature6ac6cb0
-
Delete training_args.bin
Verified signature6e9add0 -
Delete trainer_state.json
Verified signaturead555f2 -
Update config.json
Verified signaturee353850 -
Update README.md
Verified signature196d437 -
Update README.md
Verified signatured8daca5 -
Update README.md
Verified signaturea2e3489
-
Update README.md
Verified signatured84425e -
Update README.md
Verified signature0cbf49e -
Update README.md
Verified signature56c6eda
-
Add metadata tags (#1)
Verified signature- Add metadata tags (9fbe5319452e003339c233abe65ae3e8d81fd1c1) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>eac705b
-
Upload model-00011-of-00022.safetensors with huggingface_hub
Verified signaturea8e68d5 -
Update README.md
Verified signaturea898882 -
Update README.md
Verified signature29b1b7f -
Upload model-00014-of-00022.safetensors with huggingface_hub
Verified signature632db0a -
Update config.json
Verified signaturee4693a9 -
Upload model-00009-of-00022.safetensors with huggingface_hub
Verified signaturef3bad25 -
Upload generation_config.json with huggingface_hub
Verified signature9a7ae63 -
Upload model-00002-of-00022.safetensors with huggingface_hub
Verified signature23cd169 -
Upload model-00012-of-00022.safetensors with huggingface_hub
Verified signature06eee4c -
Upload tokenizer.json with huggingface_hub
Verified signature974967c -
Upload model-00008-of-00022.safetensors with huggingface_hub
Verified signature84a2865 -
Upload model-00020-of-00022.safetensors with huggingface_hub
Verified signature9f7a052 -
Upload model-00017-of-00022.safetensors with huggingface_hub
Verified signature0e4baaa -
Upload model-00007-of-00022.safetensors with huggingface_hub
Verified signature221870b -
Upload model-00022-of-00022.safetensors with huggingface_hub
Verified signature80f9975 -
Upload model-00019-of-00022.safetensors with huggingface_hub
Verified signature5645d90 -
Upload model-00006-of-00022.safetensors with huggingface_hub
Verified signaturef8457af -
Upload special_tokens_map.json with huggingface_hub
Verified signature6c95dd1 -
Upload model-00001-of-00022.safetensors with huggingface_hub
Verified signature66e6c38 -
Upload model-00005-of-00022.safetensors with huggingface_hub
Verified signature70e6fa3 -
Upload model.safetensors.index.json with huggingface_hub
Verified signaturecb068fa -
Upload model-00004-of-00022.safetensors with huggingface_hub
Verified signature407f81e -
Upload tokenizer_config.json with huggingface_hub
Verified signatureb862747 -
Upload model-00021-of-00022.safetensors with huggingface_hub
Verified signature76c8a50 -
Upload model-00003-of-00022.safetensors with huggingface_hub
Verified signaturebebfc28 -
Upload model-00016-of-00022.safetensors with huggingface_hub
Verified signature0b7fa57 -
Upload training_args.bin with huggingface_hub
Verified signatured17fddf -
Upload model-00010-of-00022.safetensors with huggingface_hub
Verified signature75957a7 -
Upload config.json with huggingface_hub
Verified signature10f8024 -
Upload model-00018-of-00022.safetensors with huggingface_hub
Verified signature4c873b1 -
Upload model-00015-of-00022.safetensors with huggingface_hub
Verified signature4a8b7f6 -
Upload tokenizer.model with huggingface_hub
Verified signature0fdc8bf -
Upload model-00013-of-00022.safetensors with huggingface_hub
Verified signature47d7490 -
Upload trainer_state.json with huggingface_hub
Verified signature2415034 -
Update README.md
Verified signature232c40f