Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

oracle19c-nl2sql-granite-4.1-3b-lora

by Vakamalla Anitha Vakamalla123-Anitha/oracle19c-nl2sql-granite-4.1-3b-lora

oracle19c-nl2sql-granite-4.1-3b-lora is an open-weight model for text generation from Vakamalla Anitha, released under Apache License 2.0. Its published files total 49.2 MB.

basemodel: ibm-granite/granite-4.1-3b libraryname: peft pipelinetag: text-generation - lora - qlora - peft - oracle - oracle19c - nl2sql - text-to-sql - sql-generation - granite A QLoRA adapter fine-tuned to convert natural-language questions into Oracle 19c…

Parameters—
Context—
Weights42.0 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Model Card

By Vakamalla Anitha, published under apache-2.0, revision d41d376aabc5.

basemodel: ibm-granite/granite-4.1-3b libraryname: peft pipelinetag: text-generation - lora - qlora - peft - oracle - oracle19c - nl2sql - text-to-sql - sql-generation - granite A QLoRA adapter fine-tuned to convert natural-language questions into Oracle 19c SQL queries. This repository contains a LoRA adapter, not a full standalone model. - Convert natural-language questions into Oracle 19c SQL - Use with a schema-retrieval or RAG layer for better table and column selection - 2,800 Oracle-focused NL→SQL examples - 400 general-SQL replay examples - This adapter is not a database-security system. - Review every generated SQL query before running it. - Use read-only database access for…

Read Vakamalla Anitha's full model card

--- base_model: ibm-granite/granite-4.1-3b library_name: peft pipeline_tag: text-generation license: apache-2.0 tags: - lora - qlora - peft - oracle - oracle19c - nl2sql - text-to-sql - sql-generation - granite


Fine-Tuned Oracle 19c NL2SQL QLoRA Adapter for Granite 4.1 3B

A QLoRA adapter fine-tuned to convert natural-language questions into Oracle 19c SQL queries.

Base model

This repository contains a LoRA adapter, not a full standalone model.

Load it together with:

ibm-granite/granite-4.1-3b

Intended use

  • Convert natural-language questions into Oracle 19c SQL
  • Generate analytical and reporting queries
  • Support SQL learning, prototyping, and evaluation
  • Use with a schema-retrieval or RAG layer for better table and column selection

Training details

  • Base model: Granite 4.1 3B Instruct
  • Fine-tuning method: 4-bit NF4 QLoRA with double quantization
  • Training approach: Supervised fine-tuning with PEFT LoRA
  • Training examples: 3,200 total
  • 2,800 Oracle-focused NL→SQL examples
  • 400 general-SQL replay examples
  • Validation examples: 350
  • Epochs: 1
  • Training steps: 400
  • Learning rate: 2e-5
  • Maximum sequence length: 1,024
  • Per-device batch size: 1
  • Gradient accumulation steps: 8
  • Effective batch size: 8
  • Compute precision: FP16
  • Training hardware: Tesla T4 GPU

LoRA configuration

  • Rank: 16
  • Alpha: 32
  • Dropout: 0.05
  • Target modules: q_proj, k_proj, v_proj, o_proj
  • PEFT version: 0.20.0

Limitations and safe use

  • This adapter is not a database-security system.
  • Review every generated SQL query before running it.
  • Use read-only database access for analytics workloads.
  • Apply authentication, authorization, tenant, organization, role, and row-level filters in your application.
  • Test generated SQL against your own schema and Oracle version.
  • The training examples are generalized and do not include real customer records, credentials, or database connections.

Load the adapter

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_model_id = "ibm-granite/granite-4.1-3b"
adapter_id = "Vakamalla123-Anitha/oracle19c-nl2sql-granite-4.1-3b-lora"

tokenizer = AutoTokenizer.from_pretrained(base_model_id)

base_model = AutoModelForCausalLM.from_pretrained(
    base_model_id,
    torch_dtype=torch.float16,
    device_map="auto"
)

model = PeftModel.from_pretrained(base_model, adapter_id)

Example

Question

Show total sales by sales representative for July 2026.

Expected behavior

Generate an Oracle SQL SELECT query with date filtering, aggregation, and grouping. Always review the generated SQL before execution.

Identity and Version

Repository
Vakamalla123-Anitha/oracle19c-nl2sql-granite-4.1-3b-lora
Publisher
Vakamalla Anitha
Task
Text generation
Modality
Text
Library
peft
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
d41d376aabc54e7a62426aa1a966e1f836151fa6
First published
2026-09-28
Last updated
2026-09-29

Files and Weights

7 files, 49.2 MB in total. The weights are 1 file totalling 42.0 MB in safetensors.

Weights1 file · 42.0 MB
Configuration1 file · 1.1 KB
Tokenizer2 files · 7.2 MB
Documentation1 file · 2.9 KB
Other1 file · 6.1 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
adapter_model.safetensorsWeights42.0 MB e957e482fc8f
adapter_config.jsonConfiguration1.1 KB —
README.mdDocumentation2.9 KB —
chat_template.jinjaOther6.1 KB —
.gitattributesRepository1.5 KB —
tokenizer.jsonTokenizer7.2 MB —
tokenizer_config.jsonTokenizer394 B —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
42.0 MB
Download from Vakamalla Anitha

Released by Vakamalla Anitha through its official repository on Hugging Face. Read the license.

Built From

  • Adapter of ibm-granite/granite-4.1-3b
  • Derived from ibm-granite/granite-4.1-3b

Memory Requirements

PrecisionWeights in memory
As published42.0 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About oracle19c-nl2sql-granite-4.1-3b-lora

Can I use oracle19c-nl2sql-granite-4.1-3b-lora commercially?

Yes. oracle19c-nl2sql-granite-4.1-3b-lora is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ternary-Bonsai-2-27B-gguf

Prism ML

Full 27B-class reasoning in ternary transformer weights, for llama.cpp (CUDA, Metal, CPU) - \~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within half a point of full precision (96.57), coding level with the baseline (89.42), agentic tool calling at 74.92…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Uncensored Qwen3.8-27B, published as GGUF quantizations with the multi token prediction (MTP) head retained and verified. Refusal behaviour has been substantially reduced, not eliminated. See Measured behaviour for the numbers. Capabilities, training data, and architecture are otherwise unchanged. - Refusal directions removed with Heretic, which co minimizes refusal count against KL divergence from the base model. No handwritten refusal removal code, no finetuning, no additional training data. - Abliteration runs at bf16 (no 4 bit quantization). the resulting LoRA is merged into the bf16 base, so the published weights are not a quantized round trip. - mtp. tensors are copied verbatim from…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers