Run this model with HF Jobs

Run jeevanhm8747/adaption_indian_crop_ipm_advisory on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/jeevanhm8747/adaption_indian_crop_ipm_advisory. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/jeevanhm8747/adaption_indian_crop_ipm_advisory on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

adaption_indian_crop_ipm_advisory

Model Training

A LORA adapter for mistralai/Mixtral-8x7B-Instruct-v0.1. This model was trained with SFT using Adaption's AutoScientist on the indian_crop_ipm_advisory dataset.

Training metrics

AutoScientist Config

{
  "job_id": "b9210ec1-1efc-4a2d-8c4d-b38290105211",
  "training_experiment_id": "138ceba9-6b53-48e5-b5a6-2546ff6c7614",
  "original_model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
  "trained_model_name": "adaption_indian_crop_ipm_advisory",
  "training_method": "sft",
  "training_type": "lora",
  "data_format": "chat",
  "hyperparams": {
    "lora": "true",
    "lora_r": 64,
    "n_evals": 5,
    "n_epochs": 3,
    "batch_size": "max",
    "lora_alpha": 128,
    "lora_dropout": 0.05,
    "min_lr_ratio": 0.1,
    "warmup_ratio": 0.05,
    "weight_decay": 0.02,
    "learning_rate": 0.0003,
    "max_grad_norm": 1,
    "base_model_size": "46.7B",
    "train_on_inputs": "false",
    "training_method": "sft",
    "lr_scheduler_type": "cosine",
    "scheduler_num_cycles": 0.5,
    "lora_trainable_modules": "k_proj,o_proj,q_proj,v_proj"
  }
}

Training Data

The model was trained on 48,632 rows of adapted data with the following domain distribution: agriculture (42%), code (12%), science (11%), medical (8%), math (4%), legal (3%), personal-finance (2%), marketing (2%), data-analysis-visualization (2%), market-analysis (2%), technology (1%), hr (1%), corporate-business (1%), other (1%), governance (1%), writing-editing-communication (1%), entertainment (1%), history (1%), architecture-design (1%), product-advice (1%), art (1%), news (0%), academic-education (0%), cooking (0%), geography (0%), personal-growth (0%), career-workplace (0%), sports (0%), roleplay (0%), language (0%), music (0%).

Model Evaluation

The model was evaluated on an in-distribution held-out test set as well as a broader domain-specific test set to measure generalization.

Win rates

Domain Win rate vs. base model
general 84%

How to use

pip install torch transformers peft accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
from peft import PeftModel

BASE = "mistralai/Mixtral-8x7B-Instruct-v0.1"
ADAPTER = "jeevanhm8747/adaption_indian_crop_ipm_advisory"

base = AutoModelForCausalLM.from_pretrained(BASE, dtype="auto", device_map="auto")
# Merge the LoRA weights into the base for faster inference
model = PeftModel.from_pretrained(base, ADAPTER).merge_and_unload()
model.eval()
tokenizer = AutoTokenizer.from_pretrained(BASE)

pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)

messages = [{"role": "user", "content": "Hello!"}]
out = pipe(messages, max_new_tokens=512, do_sample=True, temperature=0.6)
print(out[0]["generated_text"][-1]["content"])
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for jeevanhm8747/adaption_indian_crop_ipm_advisory

Adapter
(150)
this model