Image-Text-to-Text
Transformers
Safetensors
gemma3
mergekit
Merge
conversational
text-generation-inference
Instructions to use Delta-Vector/Pascal-Base-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Delta-Vector/Pascal-Base-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Delta-Vector/Pascal-Base-12B") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Delta-Vector/Pascal-Base-12B") model = AutoModelForMultimodalLM.from_pretrained("Delta-Vector/Pascal-Base-12B") 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?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Delta-Vector/Pascal-Base-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Delta-Vector/Pascal-Base-12B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Delta-Vector/Pascal-Base-12B", "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/Delta-Vector/Pascal-Base-12B
- SGLang
How to use Delta-Vector/Pascal-Base-12B 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 "Delta-Vector/Pascal-Base-12B" \ --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": "Delta-Vector/Pascal-Base-12B", "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 "Delta-Vector/Pascal-Base-12B" \ --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": "Delta-Vector/Pascal-Base-12B", "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 Delta-Vector/Pascal-Base-12B with Docker Model Runner:
docker model run hf.co/Delta-Vector/Pascal-Base-12B
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,29 +8,12 @@ tags:
|
|
| 8 |
- merge
|
| 9 |
|
| 10 |
---
|
| 11 |
-
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
|
| 18 |
-
This model was merged using the Passthrough merge method using [unsloth/gemma-3-12b-it](https://huggingface.co/unsloth/gemma-3-12b-it) + [NewEden/Gemma-LN-Lora](https://huggingface.co/NewEden/Gemma-LN-Lora) as a base.
|
| 19 |
-
|
| 20 |
-
### Models Merged
|
| 21 |
-
|
| 22 |
-
The following models were included in the merge:
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
### Configuration
|
| 26 |
-
|
| 27 |
-
The following YAML configuration was used to produce this model:
|
| 28 |
-
|
| 29 |
-
```yaml
|
| 30 |
-
base_model: unsloth/gemma-3-12b-it+NewEden/Gemma-LN-Lora
|
| 31 |
-
dtype: bfloat16
|
| 32 |
-
merge_method: passthrough
|
| 33 |
-
models:
|
| 34 |
-
- model: unsloth/gemma-3-12b-it+NewEden/Gemma-LN-Lora
|
| 35 |
-
|
| 36 |
-
```
|
|
|
|
| 8 |
- merge
|
| 9 |
|
| 10 |
---
|
| 11 |
+
Hparams:
|
| 12 |
|
| 13 |
+
- LR: 1e-5
|
| 14 |
+
- Weight Decay: 0.02
|
| 15 |
+
- grad-clip: 0.2
|
| 16 |
|
| 17 |
+
pretrained on a buncha LNs, books, etc.
|
| 18 |
+
Used for a base for Pascal.
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|