Text Generation
Transformers
Safetensors
GGUF
English
gemma3
image-text-to-text
abliteration
heretic
uncensored
gemma
ltx-2
comfyui
video-generation
text-encoder
fp8
int8
int4
convrot
nvfp4
mxfp8
learned-rounding
blackwell
conversational
text-generation-inference
Instructions to use DreamFast/gemma-3-12b-it-heretic-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DreamFast/gemma-3-12b-it-heretic-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DreamFast/gemma-3-12b-it-heretic-v2") 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("DreamFast/gemma-3-12b-it-heretic-v2") model = AutoModelForMultimodalLM.from_pretrained("DreamFast/gemma-3-12b-it-heretic-v2", device_map="auto") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use DreamFast/gemma-3-12b-it-heretic-v2 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M # Run inference directly in the terminal: llama cli -hf DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M # Run inference directly in the terminal: llama cli -hf DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
Use Docker
docker model run hf.co/DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use DreamFast/gemma-3-12b-it-heretic-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DreamFast/gemma-3-12b-it-heretic-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DreamFast/gemma-3-12b-it-heretic-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
- SGLang
How to use DreamFast/gemma-3-12b-it-heretic-v2 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 "DreamFast/gemma-3-12b-it-heretic-v2" \ --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": "DreamFast/gemma-3-12b-it-heretic-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "DreamFast/gemma-3-12b-it-heretic-v2" \ --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": "DreamFast/gemma-3-12b-it-heretic-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use DreamFast/gemma-3-12b-it-heretic-v2 with Ollama:
ollama run hf.co/DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use DreamFast/gemma-3-12b-it-heretic-v2 with Docker Model Runner:
docker model run hf.co/DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
- Lemonade
How to use DreamFast/gemma-3-12b-it-heretic-v2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DreamFast/gemma-3-12b-it-heretic-v2:Q4_K_M
Run and chat with the model
lemonade run user.gemma-3-12b-it-heretic-v2-Q4_K_M
List all available models
lemonade list
- Atomic Chat
The model won't generate text if image input is enabled with TextGenerateLTX2Prompt
#1
by squeeker - opened
squeeker changed discussion status to closed
squeeker changed discussion status to open
The issue is actually the nodes and included system prompts. Newer ComfyUI version allows you to disable the default prompt and write your own. You must call the input image <image_soft_token>, other wise it will be ignored.
squeeker changed discussion status to closed
DreamFast changed discussion status to open
