/ Модель

Характеристики

Лицензия
Gemma
Базовая модель
gemma-4-12b-it
Библиотека
transformers
Опубликована
28 ноя 2026

organic-ai-gemma4-12b

Генерация текстаТекст → текст
201скачиваний за 30 дней0лайковвеса обновлены29 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Локальная модель на базе Gemma 4 12B для вопросов об органическом земледелии, почвах и агрономии, ориентированная на фермерские условия Индии.

Organic AI Gemma 4 12B — локальная доменно адаптированная языковая модель, созданная Ishaan Dalvi на основе unsloth/gemma-4-12b-it. Модель дообучена методами SFT и DPO для органического земледелия и агрономии: она отвечает на вопросы о здоровье почвы и её микробиологии, компостировании, сборе воды, органической защите растений и сельском хозяйстве в условиях тропических муссонов, Деканского плато и региона Западных Гат. Обучение включало настройки для отказа от назначения доз агрохимикатов и предложения органических альтернатив.

Это текстовая модель с диалоговым режимом, доступная в форматах LoRA-адаптера, GGUF и MLX. Она предназначена для локального использования и прототипирования; в README указана длина обучения до 1024 токенов, но это не подтверждает контекстное окно модели при работе. Модель может ошибаться в единицах измерения, допускать опечатки и не располагает актуальными данными о погоде, почвах или рынках без внешних инструментов. Её ответы не проверены агрономами и не заменяют лабораторный анализ почвы или консультацию сертифицированного специалиста. Лицензия — Gemma; подробные условия следует сверять с лицензией базовой модели.

Сценарии применения

  • получение советов по органическому уходу за почвой
  • подбор органических способов защиты растений
  • разбор вопросов о компостировании и почвенной микробиологии
  • поиск подходов к сбору и сохранению воды на ферме
  • обсуждение земледелия на чернозёмных Vertisol в условиях муссонов

Ограничения

Модель не проверена агрономами; ответы могут содержать ошибки, включая путаницу в единицах, и не заменяют анализ почвы или консультацию специалиста. Без внешних инструментов у неё нет доступа к актуальным погодным, почвенным и рыночным данным.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Organic AI (Gemma 4 12B — SFT + DPO)

Made by Ishaan Dalvi (ishaan.dalvigroup.co.in)

Important Disclaimer — Heavily Built by AI & Not Human-Verified: This model, its training datasets, and the companion skill/MCP tooling were heavily built using AI and have not been human-verified by an agronomist or agricultural scientist. Do not treat outputs as verified agronomic prescriptions—always confirm rates and treatments with a laboratory soil test and a local KVK / certified agronomy specialist.

Organic AI (Gemma 4 12B) is a domain-adapted local language model trained for chemical-aware, strictly organic-first agronomy, soil microbiology, composting, water harvesting, organic IPM, and tropical monsoon / Deccan black cotton (Vertisol) & Western Ghats farming.

Recommendation: If you have internet/tool access or want live SoilGrids, Open-Meteo, and strict guardrail adherence, prefer the Organic AI Gemini Skill + MCP Server in the companion GitHub repository: https://github.com/MCGlitch1001/Organic-AI (one-click skill download: organic-ai-skill.zip). This local 12B model is provided as an offline/local prototype and research release.


Repository Contents

This single repository packages all three formats of the Organic AI Gemma 4 12B (v2 SFT+DPO) checkpoint:

FolderFormatSize (approx.)Best For
adapter/PEFT LoRA (r=16, lora_alpha=16)~281 MBMerging or further fine-tuning on unsloth/gemma-4-12b-it
gguf/gemma-4-12b-it.Q4_K_M.gguf + F16-mmproj.gguf + Modelfile~7.0 GBOllama, llama.cpp, LM Studio (Linux/Windows/macOS)
mlx/Fused 4-bit MLX model (chat_template.jinja with thinking disabled by default)~6.3 GBApple Silicon (mlx-lm)

Quick Start

1. Ollama (using gguf/)

Download the gguf/ directory, then create and run the Ollama model from inside gguf/:

cd gguf
ollama create organic-ai-gemma4 -f Modelfile
ollama run organic-ai-gemma4

2. Apple Silicon MLX (using mlx/)

pip install mlx-lm
python -m mlx_lm.generate \
  --model MCGlitch/organic-ai-gemma4-12b/mlx \
  --prompt "How do arbuscular mycorrhizal fungi help crops, and what practices harm them?" \
  --max-tokens 512

(If downloading locally first, point --model to your local mlx/ folder.)

3. Transformers + PEFT (using adapter/)

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

base_id = "unsloth/gemma-4-12b-it"
adapter_id = "MCGlitch/organic-ai-gemma4-12b"

tokenizer = AutoTokenizer.from_pretrained(base_id)
base_model = AutoModelForCausalLM.from_pretrained(
    base_id, torch_dtype=torch.bfloat16, device_map="auto"
)
model = PeftModel.from_pretrained(base_model, adapter_id, subfolder="adapter")

messages = [
    {
        "role": "system",
        "content": (
            "You are a chemical-aware, strictly organic-first agronomy specialist with deep expertise "
            "in soil microbiology, composting, water harvesting, no-till/cover cropping, organic IPM, "
            "general crop science, and tropical monsoon / black cotton (vertisol) farming."
        ),
    },
    {"role": "user", "content": "How many kg of urea per acre should I apply to rice at tillering?"},
]
inputs = tokenizer.apply_chat_template(
    messages, tokenize=True, add_generation_prompt=True, return_tensors="pt", enable_thinking=False
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=384, temperature=1.0, top_p=0.95, top_k=64)
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))

Training Summary

  • Base Model: unsloth/gemma-4-12b-it (text-only LoRA: r=16, lora_alpha=16, lora_dropout=0, language attention + MLP layers, max_seq_length=1024)
  • Stage 1 (Broad Agronomy SFT): 14,513 train / 763 validation rows with 3-part organic reframing on synthetic agrochemical queries
  • Stage 2 (Organic & Regional Grounding SFT): 1,670 train / 151 validation rows (1.5 epochs, cosine lr=5e-5, adamw_8bit, response-only loss) built from pre-Nov-2022 audited manuals, guardrails_v2, Indian/Vertisol PDF Q&As, and Stage 1 replay
  • Stage 3 (DPO Guardrail Lock-In): 250 project-authored preference pairs (beta=0.1, 1 epoch, cosine lr=5e-6) targeting chemical dose refusals + 3-part organic pivots, hyper-local honesty, Vertisol physics/alkalinity, textbook-artifact removal, and out-of-scope refusals
  • Exports: Fused/quantized to Q4_K_M GGUF (+ F16 mmproj) and fused into 4-bit MLX via scripts/fuse_peft_mlx.py

Evaluation & Known Limitations

Qualitative and guardrail checks on the 20-prompt golden_eval_v2.jsonl suite are logged in logs/eval_gemma4_v2.md in the GitHub repository:

  • Strengths: Consistently refuses synthetic agrochemical dose prescriptions (urea, DAP, cypermethrin, carbendazim, glyphosate) while providing mechanism, ecological trade-offs, and biological/organic alternatives; handles hyper-local gaps (exact mandi prices, taluka variety picks) and out-of-scope medical/financial prompts cleanly.
  • Limitations (Read Before Use):
    • This is a local 12B advisory prototype, not a substitute for laboratory soil tests or certified extension advice.
    • Occasional minor unit inconsistencies (e.g., mixing t/ha and t/acre), rare typos, or legacy reference phrasing (Chapter 5) can still occur in 12B generations.
    • Has no live weather, soil-grid, or market API access unless paired with external tools.
    • Medical emergencies / pesticide poisoning: Never rely on an LLM—seek emergency medical care immediately (108 in India) with the product label.

Author & License

  • Made by: Ishaan Dalvi (ishaan.dalvigroup.co.in)
  • Base model & weights (gguf/, mlx/, derived weights): Subject to the Gemma Terms of Use.
  • Adapter config, training pipeline & documentation: Apache License 2.0.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Ревизия весов
73a641b

0 моделей