Downloads · 30 days
32
0% of all-time downloads
Changgil/google-gemma-3-27b-it-text
google-gemma-3-27b-it-text is a text generation model from Changgil. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
Original Model: Gemma 3 by Google DeepMind
Downloads · 30 days
32
0% of all-time downloads
All-time downloads
8K
Public
Parameters
27B
54.1 GB on disk
Likes
9
Public
Click a slice to open those files.
.safetensors54 GB · 100%
From the Hugging Face model README
Original Model: Gemma 3 by Google DeepMind
Adaptation: Text-only version (Image processing capabilities removed)
This is a text-only version of the Gemma 3 model, adapted from Google's original multimodal Gemma 3. The image processing capabilities have been removed while preserving the text generation capabilities.
This text-only adaptation maintains the core language capabilities with a 128K context window and multilingual support in over 140 languages. The model is well-suited for a variety of text generation tasks, including question answering, summarization, and reasoning.
The adaptation makes the model more lightweight and suitable for environments where only text processing is needed, or where resource constraints make the full multimodal model impractical.
This adaptation:
AutoModelForCausalLM instead of requiring specialized multimodal classesfrom transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "your-username/gemma-3-27b-text" # Replace with your model path after uploading
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
messages = [
{"role": "system", "content": "You are an AI assistant that provides helpful and accurate information."},
{"role": "user", "content": "Hello. How's the weather today?"}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
)
outputs = model.generate(
inputs,
max_new_tokens=512,
temperature=0.2,
do_sample=True
)
response = tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True)
print(response)