Instructions to use Naphula/Goetia-26B-A4B-v1.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Naphula/Goetia-26B-A4B-v1.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Naphula/Goetia-26B-A4B-v1.4") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Naphula/Goetia-26B-A4B-v1.4") model = AutoModelForMultimodalLM.from_pretrained("Naphula/Goetia-26B-A4B-v1.4", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Naphula/Goetia-26B-A4B-v1.4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Naphula/Goetia-26B-A4B-v1.4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Naphula/Goetia-26B-A4B-v1.4", "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/Naphula/Goetia-26B-A4B-v1.4
- SGLang
How to use Naphula/Goetia-26B-A4B-v1.4 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 "Naphula/Goetia-26B-A4B-v1.4" \ --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": "Naphula/Goetia-26B-A4B-v1.4", "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 "Naphula/Goetia-26B-A4B-v1.4" \ --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": "Naphula/Goetia-26B-A4B-v1.4", "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 Naphula/Goetia-26B-A4B-v1.4 with Docker Model Runner:
docker model run hf.co/Naphula/Goetia-26B-A4B-v1.4
Schizo output
The model is quite dumb tbh. I don't enforce thinking, so maybe that's the problem? Anyway, even if I raise min P substantially and lower temp to 0.7 or 0.5, it just always fails to understand what's actually going on in the scene. Forget subtleties, it just mixes the basic stuff up, like who said what, to whom, where we are, etc. Completely disregards social context, probably because it has such poor grasp on the prompt content. At 1.0 temp you get 100% schizo confusion, like talking to a demented person. Comparing this to StyleTune v2 and basic gemma, I used all at Q6_K, and the difference between this one and those is night and day. Maybe the quant is broken, I dunno.
The model is quite dumb tbh. I don't enforce thinking, so maybe that's the problem? Anyway, even if I raise min P substantially and lower temp to 0.7 or 0.5, it just always fails to understand what's actually going on in the scene. Forget subtleties, it just mixes the basic stuff up, like who said what, to whom, where we are, etc. Completely disregards social context, probably because it has such poor grasp on the prompt content. At 1.0 temp you get 100% schizo confusion, like talking to a demented person. Comparing this to StyleTune v2 and basic gemma, I used all at Q6_K, and the difference between this one and those is night and day. Maybe the quant is broken, I dunno.
The reason v1.4 is going to perform even worse than v1.3 or styletune by itself is that since v1.3 was formatted incorrectly, it did not absorb styletune's lm_head.
This version is much dumber because grafting an lm_head from an instruct base finetune directly onto a non-instruct base foundation causes severe degradation.
base_model: B:\26B\google_gemma-4-26B-A4B
- model: B:\26B\Gryphe--Gemma-4-26B-A4B-StyleTune-V2
parameters:
weight:
- filter: "lm_head"
value: 1.0
v1.5 should fix these issues and be more stable than previous versions because it uses the instruct base as della's base_model, which is what styletune was actually trained on.
@BigBeavis please try the Heresy variant to see if it works better. It would be interesting to know whether the Hereticisation process has inadvertently helped to heal the lm_head issue @Naphula has identified. After a few false starts with quant problems I have found 1.4 Heresy to be quite good.
I'm not going to ablate v1.3 or v1.4 any further, I think I'll try to make a SOMPOA and ARA of v1.5 instead as this should provide a more accurate comparison. The bug of "non-instruct base being used as base model" with all instruct donors (1.3+1.4) and instruct lm_head (1.4) is so severe that it may have invalidated all previous ARA/SOMPOA comparisons for Goetia 26B.
The final hurdle with v1.5 is likely to be testing 3 variants before even reaching the ablation stage:
- fully merged lm_head of all 20+ donors (including styletune)
- styletune v2 only
- base model lm_head
@BigBeavis please try the Heresy variant to see if it works better. It would be interesting to know whether the Hereticisation process has inadvertently helped to heal the
lm_headissue @Naphula has identified. After a few false starts with quant problems I have found 1.4 Heresy to be quite good.
I don't think ablation would heal it, finetuning might but I am not convinced that such pipelines are easily repaired. All the MLP/ATN layers were desynched as well from instruct base not just the lm_head.
What I suspect however is that the damage isn't as bad as Gemini claims due to redundant sparsification with high density / low epsilon, although it would still have negative impacts.
If v1.5 isn't a noticeable improvement then the theory doesn't hold up as well.
It may be another example of a model taking advantage of latent structural errors as a form of covert noncompliance.
Much to my surprise only Orion, Pantheon and StyleTune even trained lm_head. All other models (readyart, nbeerbower, zerofata etc) did not train the lm_head so the distribution is essentially 40% Orion 30% Styletune and 30% Pantheon by default (della magnitude), meaning we should not even have to monkey with the lm_head toggler experiment.
I'm glad the issue has been identified, will be looking forward to the fixed versionπ