Image-Text-to-Text
Transformers
Safetensors
gemma4_unified
mergekit
Merge
roleplay
heretic
uncensored
decensored
abliterated
ara
conversational
Instructions to use Vortex5/G4-Starry-Ocean-12B-heretic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vortex5/G4-Starry-Ocean-12B-heretic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Vortex5/G4-Starry-Ocean-12B-heretic") 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("Vortex5/G4-Starry-Ocean-12B-heretic") model = AutoModelForMultimodalLM.from_pretrained("Vortex5/G4-Starry-Ocean-12B-heretic", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Vortex5/G4-Starry-Ocean-12B-heretic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vortex5/G4-Starry-Ocean-12B-heretic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vortex5/G4-Starry-Ocean-12B-heretic", "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/Vortex5/G4-Starry-Ocean-12B-heretic
- SGLang
How to use Vortex5/G4-Starry-Ocean-12B-heretic 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 "Vortex5/G4-Starry-Ocean-12B-heretic" \ --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": "Vortex5/G4-Starry-Ocean-12B-heretic", "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 "Vortex5/G4-Starry-Ocean-12B-heretic" \ --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": "Vortex5/G4-Starry-Ocean-12B-heretic", "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 Vortex5/G4-Starry-Ocean-12B-heretic with Docker Model Runner:
docker model run hf.co/Vortex5/G4-Starry-Ocean-12B-heretic
This is a decensored version of Vortex5/G4-Starry-Ocean-12B, made using Heretic v1.2.0 with the Arbitrary-Rank Ablation (ARA) method (with row-norm preservation)
Abliteration parameters
| Parameter | Value |
|---|---|
| start_layer_index | 22 |
| end_layer_index | 44 |
| preserve_good_behavior_weight | 0.9903 |
| steer_bad_behavior_weight | 0.0025 |
| overcorrect_relative_weight | 0.4619 |
| neighbor_count | 15 |
Performance
| Metric | This model | Original model (Vortex5/G4-Starry-Ocean-12B) |
|---|---|---|
| KL divergence | 0.0466 | 0 (by definition) |
| Refusals | 13/100 | 99/100 |
G4-Starry-Ocean-12B
Overview
G4-Starry-Ocean-12B was created through a merge combining gemma-4-12B-it, Semancer-12B, and G4-12B-Station-Keeper, using a custom method.
Merge configuration
base_model: google/gemma-4-12B-it models: - model: UnstableLlama/Semancer-12B - model: ewald1976/G4-12B-Station-Keeper merge_method: hcr chat_template: auto parameters: strength: 0.9 retention: 0.6 novelty: 0.36 stability: 0.7 dtype: float32 out_dtype: bfloat16 tokenizer: source: union
Intended Use
Storytelling
Structured long-form narrative
Roleplay
Emotion-forward interaction
Creative Writing
Atmospheric fiction
- Downloads last month
- 48