Downloads · 30 days
0
RainbowLord/Rainbow-AI-1
Rainbow-AI-1 is a machine learning model from RainbowLord. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Rainbow-AI-Specialist is a custom multi-domain fine-tuned AI model based on google/gemma-2-2b-it, trained using QLoRA via Hugging Face TRL (SFTTrainer).
Downloads · 30 days
0
Access
Public
Updated Sep 6, 2026
Repo size
75.9 MB
Likes
1
Public
Click a slice to open those files.
.safetensors41.6 MB · 55%
From the Hugging Face model README
Rainbow-AI-Specialist is a custom multi-domain fine-tuned AI model based on google/gemma-2-2b-it, trained using QLoRA via Hugging Face TRL (SFTTrainer).
You can load and test this adapter easily in Python using PEFT and Transformers:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model and tokenizer
model_id = "google/gemma-2-2b-it"
tokenizer = AutoTokenizer.from_pretrained(model_id)
base_model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
# Attach your custom Rainbow adapter!
model = PeftModel.from_pretrained(base_model, "RainbowLord/Rainbow-AI-Specialist")
# Test generation
inputs = tokenizer("### User: Write a Python script for a simple trading bot.\n### Rainbow:", return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=150)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))