How to use from
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 "OnlyTextLLMs/gemma-4-26B-A4B-it-OnlyText" \
    --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": "OnlyTextLLMs/gemma-4-26B-A4B-it-OnlyText",
		"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 "OnlyTextLLMs/gemma-4-26B-A4B-it-OnlyText" \
        --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": "OnlyTextLLMs/gemma-4-26B-A4B-it-OnlyText",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

gemma-4-26B-A4B-it-OnlyText

Text-only causal language model derived from google/gemma-4-26B-A4B-it by removing the vision and audio stacks (their towers/embedders and projector weights) and the multimodal special tokens. The text backbone and LM head are preserved.

Details

  • Base model: google/gemma-4-26B-A4B-it
  • Architecture: Gemma4ForCausalLM
  • Parameters: 25.23B
  • Layers: 30 · Hidden size: 2816
  • MTP head: not present
  • Weights: bfloat16

Attribution

This model is a derivative of google/gemma-4-26B-A4B-it by the Google team, released under the apache-2.0 license. All credit for the underlying weights and capabilities belongs to the original authors; this repository only removes modalities, it does not add new training.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("OnlyTextLLMs/gemma-4-26B-A4B-it-OnlyText")
tokenizer = AutoTokenizer.from_pretrained("OnlyTextLLMs/gemma-4-26B-A4B-it-OnlyText")
Downloads last month
100
Safetensors
Model size
25B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for OnlyTextLLMs/gemma-4-26B-A4B-it-OnlyText

Finetuned
(220)
this model