How to use from
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 Ashraya/gemma-270m-legal-gguf 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 Ashraya/gemma-270m-legal-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required
# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for Ashraya/gemma-270m-legal-gguf to start chatting
Quick Links

Gemma 3 270M - Legal Auto-Completion (GGUF)

Fine-tuned Gemma 3 270M for legal text auto-completion, optimized for client-side browser deployment.

Model Details

  • Format: GGUF (Q4_K_M quantization with Q5_0 fallback)
  • Size: ~169 MB
  • Optimized for: Wllama (WebAssembly) browser inference

Usage with llama.cpp

./llama-cli -m gemma-270m-q4km-optimized.gguf -p "The court held that" -n 30

Usage with Wllama (Browser)

import { Wllama } from '@wllama/wllama';

const CONFIG_PATHS = {
    'single-thread/wllama.wasm': 'path/to/single-thread/wllama.wasm',
    'multi-thread/wllama.wasm': 'path/to/multi-thread/wllama.wasm',
};

const wllama = new Wllama(CONFIG_PATHS);
await wllama.loadModelFromHF(
    'Ashraya/gemma-270m-legal-gguf',
    'gemma-270m-q4km-optimized.gguf'
);

const result = await wllama.createCompletion('The court held that', {
    nPredict: 20,
    sampling: { temp: 0.3, top_p: 0.95 }
});
console.log(result);

Files

  • gemma-270m-q4km-optimized.gguf - Main model file (~169MB)
Downloads last month
2
GGUF
Model size
0.3B params
Architecture
gemma3
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support