Views
No views yet
llama.cpp gemma4-day0 branch (b8642).| File | Method | Description |
|---|---|---|
| Q3_K_M | k-quant | The Gold Standard. Consumer Grade. (~14.2 GB) Optimized for 16GB VRAM cards (RTX 4080 / A4000). |
| Q4_K_M | k-quant | The Gold Standard. Optimal balance of logic retention and inference speed. |
| Q5_K_M | k-quant | Platinum Tier. Recommended for the RTX 3090 to maintain high reasoning stability. |
| Q6_K | k-quant | High-bit precision for complex logic and massive 100k+ token document analysis. |
| Q8_0 | block-quant | The "Reference" version. Near-perfect fidelity to the original BF16 master. |
ollama run Celeste-Gemma-4-31B-Q4_K_Mpython script :1from llama_cpp import Llama
2
3# Initialize the model for 24GB VRAM (RTX 3090)
4llm = Llama(
5 model_path="./Gemma-4-31B-Q4_K_M.gguf",
6 n_gpu_layers=-1, # Offload all layers to VRAM
7 n_ctx=32768, # Extended context window
8)
9
10# Generate response with Native Thinking tokens
11output = llm(
12 "<|think|>\nAnalyze the logic of the following legal document:",
13 max_tokens=1024,
14 stop=["<turn|>", "<|file_separator|>"],
15 echo=True
16)
17
18print(output['choices'][0]['text'])csharp script and the LLamaSharp library.1using LLama.Common;
2using LLama;
3
4var parameters = new ModelParams("Gemma-4-31B-Q4_K_M.gguf")
5{
6 ContextSize = 32768,
7 GpuLayerCount = -1 // Utilize all available CUDA cores on RTX 3090
8};
9
10using var weights = LLamaWeights.LoadFromFile(parameters);
11using var context = weights.CreateContext(parameters);
12var executor = new InteractiveExecutor(context);
13
14var chatHistory = new ChatHistory();
15chatHistory.AddMessage(AuthorRole.System, "You are a helpful assistant.");
16
17var session = new ChatSession(executor, chatHistory);
18
19await foreach (var text in session.ChatAsync(new ChatHistory.Message(AuthorRole.User, "Explain GST impact on small businesses."), new InferenceParams { MaxTokens = 1024 }))
20{
21 Console.Write(text);
22}| Platform | Support Link |
|---|---|
| Global & India | Support via Razorpay |
