CoolFace
Modelpublic

otavio-lemos/oci-copilot-jr-gguf

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes59downloads
Model Card

Model Card: otavio-lemos/oci-copilot-jr-gguf

Overview

OCI Copilot Jr GGUF is a GGUF-quantized version of OCI Copilot Jr, specialized in Oracle Cloud Infrastructure (OCI) operations. Built on Qwen 2.5 Coder 7B Instruct and quantized using llama.cpp.

AttributeValue
Base ModelQwen2.5-Coder-7B-Instruct-4bit
QuantizationFP16, Q4KM
Frameworkllama.cpp
Conversion DateApril 2026

Variants

FileTypeSizeUse Case
oci-copilot-jr.fp16.ggufFP16~15 GBHigh quality, GPU required
oci-copilot-jr-Q4KM.ggufQ4KM~4.7 GBCPU inference, low RAM

Training Configuration

python
{
  "model": "mlx-community/Qwen2.5-Coder-7B-Instruct-4bit",
  "train_data": "data/train.jsonl",
  "valid_data": "data/valid.jsonl",
  "output_dir": "outputs/cycle-1",
  "batch_size": 1,
  "learning_rate": 1e-4,
  "lora_rank": 32,
  "lora_alpha": 64,
  "lora_dropout": 0.05,
  "gradient_accumulation": 4,
  "num_layers": 16,
  "target_modules": ["q_proj","k_proj","v_proj","o_proj","gate_proj","up_proj","down_proj"],
  "iters": 2475,
  "max_seq_length": 1024,
  "val_batches": 5,
  "eval_steps": 247,
  "logging_steps": 1,
  "save_steps": 247,
  "warmup_steps": 247,
  "gradient_checkpointing": false,
  "lr_scheduler": "cosine",
  "weight_decay": 0.01,
  "seed": 42,
  "gradient_clip_norm": 1.0,
  "bf16": true

Dataset

  • —Training: 9,897 examples (75%)
  • —Validation: 1,979 examples (15%)
  • —Evaluation: 1,320 examples (10%)
  • —Total: 13,196 examples
  • —Language: Portuguese (pt)
  • —Categories: 88 OCI domains

Benchmark Results (Cycle 1)

External Judge Evaluation (mlx-community/Meta-Llama-3.1-8B-Instruct-4bit) - 200 samples

MetricBase ModelFine-TunedDelta
technical_correctness3.003.73+0.72
depth3.063.82+0.76
structure3.504.63+1.14
hallucination3.624.46+0.84
clarity3.203.98+0.77
Overall3.274.12+0.85

Top Performance Gains by Category

RankCategoryDelta
1storage/object+3.60
2troubleshooting/performance+3.80
3observability/apm+3.40
4security/dynamic-groups+3.40
5database/postgresql+3.40

Benchmark Charts

[image]

[image]

Usage

Ollama

bash
# Create Modelfile
cat > Modelfile << 'EOF'
FROM ./oci-copilot-jr-Q4_K_M.gguf
PARAMETER temperature 0.1
PARAMETER top_p 0.9
PARAMETER top_k 40
SYSTEM Você é um especialista em OCI (Oracle Cloud Infrastructure).
EOF

ollama create oci-copilot-jr -f Modelfile
ollama run oci-copilot-jr

llama.cpp

bash
# FP16 (high quality)
llama-server -m oci-copilot-jr.fp16.gguf --port 8080 -c 4096

# Q4_K_M (recommended, low RAM)
llama-server -m oci-copilot-jr-Q4_K_M.gguf --port 8080 -c 4096

LM Studio

Search for "oci-copilot-jr" in LM Studio and download the variant you need.

System Prompt

Você é um arquiteto e especialista experiente em OCI. Forneça orientações técnicas, profundas e definitivas com:
- Comandos OCI CLI reais
- Trechos de código Terraform
- Passos detalhados e justificação
- Restrições do cenário observadas
- Checklist de pré-requisitos

Limitations

  • —Language: Optimized for Brazilian Portuguese (PT-BR)
  • —Scope: Operational guidance — OCI CLI commands, Terraform snippets, step-by-step procedures, risk validation, and troubleshooting runbooks
  • —Training: Single-cycle LoRA (may improve with more cycles)
  • —Knowledge: Based on OCI documentation up to April 2026

Citation

bibtex
@model{lemos_2026_oci_copilot_jr_gguf,
  author    = {Otavio Lemos},
  title     = {OCI Copilot Jr GGUF},
  year      = {2026},
  publisher = {HuggingFace},
  url       = {https://huggingface.co/otavio-lemos/oci-copilot-jr-gguf}
}

License

MIT License - See LICENSE


Fine-tuned on Apple Silicon M3 Pro using MLX-Tune, quantized with llama.cpp