How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="RichardErkhov/google_-_codegemma-2b-4bits")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("RichardErkhov/google_-_codegemma-2b-4bits")
model = AutoModelForCausalLM.from_pretrained("RichardErkhov/google_-_codegemma-2b-4bits", device_map="auto")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Quantization made by Richard Erkhov.

Github

Discord

Request more models

codegemma-2b - bnb 4bits

Original model description: Repo model google/codegemma-2b is gated. You must be authenticated to access it.

Downloads last month
31
Safetensors
Model size
3B params
Tensor type
F32
F16
U8
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support