Downloads · 30 days
17
16% of all-time downloads
sweelol/kd-gemma3-pruned-dolly
kd-gemma3-pruned-dolly is a text generation model from sweelol. 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.
This model is part of the Sweelol AI Hub, a research project focused on efficient fine-tuning of modern language models on Kaggle accelerators.
Downloads · 30 days
17
16% of all-time downloads
All-time downloads
107
Public
Parameters
436M
905 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors872 MB · 96%
From the Hugging Face model README
This model is part of the Sweelol AI Hub, a research project focused on efficient fine-tuning of modern language models on Kaggle accelerators.
Full Research Notebook & Benchmark Results: [Coming soon]
This model is part of the Sweelol AI Hub collection, resulting from experiments in efficient fine-tuning, optimization strategies and knowledge distillation on the Gemma-3-270m architecture using the Databricks Dolly-15k dataset on Kaggle TPUs/GPUs.
google/gemma-3-270mThis model is part of the Sweelol AI Hub collection, resulting from experiments in efficient fine-tuning and knowledge distillation on the Gemma-3-270m architecture using the Databricks Dolly-15k dataset on Kaggle TPUs/GPUs.
Key Details:
google/gemma-3-270mKnowledge DistillationKnowledge Distillation on TPUhttps://huggingface.co/sweelol/kd-gemma3-pruned-dollyfrom transformers import AutoModelForCausalLM, AutoTokenizer
# For PEFT models like LoRA or Prompt Tuning, you will also need:
# from peft import PeftModel
# This is the repository ID for your specialized model
model_id = "sweelol/kd-gemma3-pruned-dolly"
# For Full Fine-Tuned models:
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained(model_id)
# For PEFT models (LoRA, Prompt Tuning):
# base_model = AutoModelForCausalLM.from_pretrained("{base_model}", torch_dtype="auto")
# model = PeftModel.from_pretrained(base_model, model_id)
# tokenizer = AutoTokenizer.from_pretrained(model_id)
# Example usage:
prompt = "Instruction:\nWhat is the capital of France?\n\nResponse:\n"
inputs = tokenizer(prompt, return_tensors="pt")
generate_ids = model.generate(inputs.input_ids, max_length=50)
result = tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
print(result)
The model was evaluated on a comprehensive suite of tasks from the lm-evaluation-harness, including 5 diverse subsets of MMLU (for academic reasoning) and HellaSwag (for common-sense reasoning). The primary metric is zero-shot accuracy on a 200-sample subset of each task's test split.
This table summarizes the final benchmark scores for the sweelol/kd-gemma3-pruned-dolly model. It is compared against the original, un-tuned baseline model.
| Benchmark Task | Sweelol KD-Pruned | Baseline (Gemma-3-270m) |
|---|---|---|
| Average MMLU (5 tasks) | 23.98% | 24.88% |
| HellaSwag (Common Sense) | 33.00% | 43.50% |
| ---------------------------------- | ---------- | ---------- |
| MMLU Sub-task Breakdown: | ||
| MMLU - High School Computer Science | 26.00% | 24.00% |
| MMLU - Formal Logic | 25.40% | 25.40% |
| MMLU - Professional Law | 25.00% | 27.00% |
| MMLU - High School Mathematics | 21.50% | 26.00% |
| MMLU - Abstract Algebra | 22.00% | 22.00% |
Full comparative results with other techniques can be found in our main research notebook linked at the top of this card.
Gemma is a family of lightweight, state-of-the-art open models from Google, built from the same research and technology used to create the Gemini models. Gemma 3 models are multimodal, handling text and image input and generating text output, with open weights for both pre-trained variants and instruction-tuned variants. Gemma 3 has a large, 128K context window, multilingual support in over 140 languages, and is available in more sizes than previous versions. Gemma 3 models are well-suited for a variety of text generation and image understanding tasks, including question answering, summarization, and reasoning. Their relatively small size makes it possible to deploy them in environments with limited resources such as laptops, desktops or your own cloud infrastructure, democratizing access to state of the art AI models and helping foster innovation for everyone.
Input:
Output:
@article{gemma_2025,
title={Gemma 3},
url={https://arxiv.org/abs/2503.19786},
publisher={Google DeepMind},
author={Gemma Team},
year={2025}
}
Data used for model training and how the data was processed.
These models were trained on a dataset of text data that includes a wide variety of sources. The 27B model was trained with 14 trillion tokens, the 12B model was trained with 12 trillion tokens, 4B model was trained with 4 trillion tokens, the 1B with 2 trillion tokens, and the 270M with 6 trillion tokens. The knowledge cutoff date for the training data was August 2024. Here are the key components:
The combination of these diverse data sources is crucial for training a powerful multimodal model that can handle a wide variety of different tasks and data formats.