Image-Text-to-Text
Transformers
Safetensors
English
llava_llama
text-generation
llava
llava-1.5
llava-v1.5-7b
vision-language-model
multimodal
quantization-aware-training
qat
int4
w4g128
learned-scales
grace
icml-2026
Instructions to use ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128
- SGLang
How to use ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128 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 "ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128" \ --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": "ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128", "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 "ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128" \ --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": "ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128 with Docker Model Runner:
docker model run hf.co/ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,7 +45,7 @@ Accepted to the International Conference on Machine Learning (ICML 2026)
|
|
| 45 |
- **Method:** GRACE
|
| 46 |
- **Quantization:** W4G128 group-wise INT4 QAT
|
| 47 |
- **Scale setting:** learned scales
|
| 48 |
-
- **Repository:**
|
| 49 |
|
| 50 |
## Files
|
| 51 |
|
|
@@ -80,7 +80,7 @@ Please use a LLaVA-compatible inference environment together with the GRACE quan
|
|
| 80 |
```python
|
| 81 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 82 |
|
| 83 |
-
repo_id = "
|
| 84 |
|
| 85 |
tokenizer = AutoTokenizer.from_pretrained(repo_id, use_fast=False)
|
| 86 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
|
| 45 |
- **Method:** GRACE
|
| 46 |
- **Quantization:** W4G128 group-wise INT4 QAT
|
| 47 |
- **Scale setting:** learned scales
|
| 48 |
+
- **Repository:** ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128
|
| 49 |
|
| 50 |
## Files
|
| 51 |
|
|
|
|
| 80 |
```python
|
| 81 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 82 |
|
| 83 |
+
repo_id = "ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128"
|
| 84 |
|
| 85 |
tokenizer = AutoTokenizer.from_pretrained(repo_id, use_fast=False)
|
| 86 |
model = AutoModelForCausalLM.from_pretrained(
|