Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Tetsuto
/
gemma-3-4b-11plus-tutor

Text Generation
PEFT
Safetensors
MLX
English
lora
education
tutor
11plus
Model card Files Files and versions
xet
Community

Instructions to use Tetsuto/gemma-3-4b-11plus-tutor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use Tetsuto/gemma-3-4b-11plus-tutor with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-3-4b-it")
    model = PeftModel.from_pretrained(base_model, "Tetsuto/gemma-3-4b-11plus-tutor")
  • MLX

    How to use Tetsuto/gemma-3-4b-11plus-tutor with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    # if on a CUDA device, also pip install mlx[cuda]
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("Tetsuto/gemma-3-4b-11plus-tutor")
    
    prompt = "Once upon a time in"
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • MLX LM

    How to use Tetsuto/gemma-3-4b-11plus-tutor with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Generate some text
    mlx_lm.generate --model "Tetsuto/gemma-3-4b-11plus-tutor" --prompt "Once upon a time"
gemma-3-4b-11plus-tutor
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
Tetsuto's picture
Tetsuto
Fix LoRA tensor transpose + HF Gemma 3 path mapping
5662cf5 verified 18 days ago
  • .gitattributes
    1.52 kB
    initial commit 18 days ago
  • README.md
    3.94 kB
    Link to HF Space playground 18 days ago
  • adapter_config.json
    565 Bytes
    Rewrite adapter_config.json in PEFT format (peft_type=LORA, r=8, alpha=160) 18 days ago
  • adapter_model.safetensors
    28.1 MB
    xet
    Fix LoRA tensor transpose + HF Gemma 3 path mapping 18 days ago