Gemma-3n-E4B is a family of lightweight, state-of-the-art open models from Google, built from the same research and technology used to create the Gemini models. Gemma 3n models are designed for efficient execution on low-resource devices
import os
from openai import OpenAI
client = OpenAI( base_url="https://api.clarifai.com/v2/ext/openai/v1", api_key=os.environ["CLARIFAI_PAT"],)response = client.chat.completions.create( model="https://clarifai.com/gcp/generate/models/gemma-3n-E4B-it-GGUF-4bit-text", messages=[{"role":"developer","content":"Talk like a pirate."},{"role":"user","content":"How do I check if a Python object is an instance of a class?",},], temperature=0.7, stream=False,# stream=True also works, just iterator over the response)print(response)