Gemma 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. They are text-to-text, decoder-only large language models, available in English, with open weights, pre-trained variants, and instruction-tuned variants. Gemma models are well-suited for a variety of text generation tasks, including question answering, summarization, and reasoning.
import requests
import json
url ="https://api.cyfuture.ai/aiapi/inferencing/response"payload ={"model":"Model Name","max_tokens":16384,"top_p":1,"top_k":40,"presence_penalty":0,"frequency_penalty":0,"temperature":0.6,"messages":[{"role":"user","content":"Hello, how are you?"}]}headers ={"Accept":"application/json","Content-Type":"application/json","Authorization":"Bearer <API_KEY>"}requests.request("POST", url, headers=headers, data=json.dumps(payload))
awaitfetch("https://api.cyfuture.ai/aiapi/inferencing/response",{ method:"POST", headers:{"Accept":"application/json","Content-Type":"application/json","Authorization":"Bearer <API_KEY>"}, body:JSON.stringify({ model:""Model Name"", max_tokens:16384, top_p:1, top_k:40, presence_penalty:0, frequency_penalty:0, temperature:0.6, messages:[{ role:"user", content:"Hello, how are you?"}]})});
URI uri = URI.create("https://api.cyfuture.ai/aiapi/inferencing/response");HttpClient client =HttpClient.newHttpClient();HttpRequest request =HttpRequest.newBuilder().uri(uri).header("Accept","application/json").header("Content-Type","application/json").header("Authorization","Bearer <API_KEY>").POST(HttpRequest.BodyPublishers.ofString("""{"model":""Model Name"","max_tokens":16384,"top_p":1,"top_k":40,"presence_penalty":0,"frequency_penalty":0,"temperature":0.6,"messages":[{"role":"user","content":"Hello, how are you?"}]}""")).build();HttpResponse<String> response = client.send(request,HttpResponse.BodyHandlers.ofString());
On-demand deployments allow you to use Gemma 7B on dedicated GPUs with Cyfuture AI' high-performance serving stack with high reliability and no rate limits.