Text Generation
PEFT
Safetensors
English
lora
qlora
unsloth
gemma4
chemistry
education
conversational
Instructions to use Stinger2311/whybook-gemma4-e2b-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Stinger2311/whybook-gemma4-e2b-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-4-E2B-it") model = PeftModel.from_pretrained(base_model, "Stinger2311/whybook-gemma4-e2b-lora") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use Stinger2311/whybook-gemma4-e2b-lora with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Stinger2311/whybook-gemma4-e2b-lora to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Stinger2311/whybook-gemma4-e2b-lora to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Stinger2311/whybook-gemma4-e2b-lora to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Stinger2311/whybook-gemma4-e2b-lora", max_seq_length=2048, )
WhyBook Gemma 4 E2B LoRA
This repository contains the LoRA adapters for the WhyBook chemistry tutoring model.
Base Model
google/gemma-4-e2b-it
Fine-Tuning Style
The adapter was trained to answer in a structured tutoring format:
- What it is
- Why it is in your textbook
- Where you will see it in real life
Files
adapter_model.safetensorsadapter_config.json- tokenizer and chat-template files
Intended Use
Use this repo if you want to:
- load the adapter on top of the base Gemma 4 E2B model
- continue fine-tuning
- inspect the lightweight fine-tuned weights separately from the GGUF export
Related Repositories
- Downloads last month
- 2