Downloads · 30 days
11
6% of all-time downloads
swordfish7412/Amigo_1.0
Amigo_1.0 is a text generation model from swordfish7412. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
<div align="center" <h3AI-Powered Code Generation & Debugging</h3 <p<strongCreated by Jan Israel</strong</p <pPart of the Swordfish AI Trio</p </div
Downloads · 30 days
11
6% of all-time downloads
All-time downloads
170
Public
Repo size
608 MB
Likes
2
Public
Click a slice to open those files.
.safetensors537 MB · 72%
From the Hugging Face model README
Amigo 1.0 is a specialized AI assistant fine-tuned for code generation and debugging. Built on CodeLlama-7B with LoRA adapters, Amigo excels at:
Amigo means "Friend" in Spanish - your reliable coding companion.
⚠️ IMPORTANT: The Spaces are currently paused to manage cloud costs.
To test the live demo, please message @janisrael on HuggingFace to request Space activation.
The Spaces run on T4 Medium GPU ($0.60/hour) and are paused when not actively being showcased. When you request access, I'll resume them immediately. The first request takes 60-90 seconds (model loading), then normal speed afterward.
For more details about the pause/resume system and cost management, see the Amihan Space README.
Amigo 1.0 is designed for:
For best results, use Amigo alongside Bandila 1.0 through the Amihan Ensemble, which intelligently routes queries to the appropriate specialist.
pip install transformers peft torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"codellama/CodeLlama-7b-hf",
load_in_4bit=True,
device_map="auto",
torch_dtype=torch.float16
)
# Load Amigo LoRA adapter
model = PeftModel.from_pretrained(base_model, "swordfish7412/Amigo_1.0")
tokenizer = AutoTokenizer.from_pretrained("swordfish7412/Amigo_1.0")
# Generate code
prompt = "Instruction: Write a Python function to calculate factorial\nInput: \nOutput: "
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens=200,
temperature=0.7,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Amigo 1.0 was trained on:
Training Configuration:
Hyperparameters:
Amigo 1.0 knows its identity and purpose:
Name: Amigo 1.0
Creator: Jan Francis Israel (The Swordfish)
Role: Super Debugger AI - Coding Specialist
Specialties: Code generation, debugging, algorithm implementation
Amigo successfully generates:
Query: "Write a Python function to calculate factorial"
Amigo's Response:
def factorial(n):
"""
This function returns the factorial of a given number.
"""
return 1 if n == 0 else n * factorial(n - 1)
Amigo is part of a trio of specialized AI models:
@misc{amigo2024,
author = {Jan Francis Israel},
title = {Amigo 1.0: Super Debugger AI - Coding Specialist},
year = {2024},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/swordfish7412/Amigo_1.0}},
note = {Part of the Swordfish Project}
}
Jan Francis Israel (The Swordfish)
MIT License - Free to use with attribution