Instructions to use harmonicdata/Gemma3-SD-v0.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use harmonicdata/Gemma3-SD-v0.2 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("harmonicdata/Gemma3-SD-v0.2") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use harmonicdata/Gemma3-SD-v0.2 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "harmonicdata/Gemma3-SD-v0.2"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "harmonicdata/Gemma3-SD-v0.2" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "harmonicdata/Gemma3-SD-v0.2", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
|
Download README.md from harmonicdata/Gemma3-SD-v0.2: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/harmonicdata/Gemma3-SD-v0.2/resolve/main/README.md
- Command line
-
hf download hf://harmonicdata/Gemma3-SD-v0.2/README.md
-
curl -L -o README.md https://huggingface.co/harmonicdata/Gemma3-SD-v0.2/resolve/main/README.md
453 Bytes
metadata
license: gemma
library_name: mlx
pipeline_tag: text-generation
extra_gated_heading: Access Gemma on Hugging Face
extra_gated_prompt: >-
To access Gemma on Hugging Face, you’re required to review and agree to
Google’s usage license. To do this, please ensure you’re logged in to Hugging
Face and click below. Requests are processed immediately.
extra_gated_button_content: Acknowledge license
base_model: google/gemma-3-12b-it
tags:
- mlx