Downloads · 30 days
3
6% of all-time downloads
aarontamte/LLama3.1-8B-cooperative-agent-finetune
LLama3.1-8B-cooperative-agent-finetune is a text generation model from aarontamte. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
- Model Type: Fine-tuned LLama-3.1-8B-Instruct using LoRA - Version: 1.0 - Last Updated: December 2024 - Base Model: Meta's LLama-3.1-8B-Instruct - Architecture: LLama 3.1 architecture with LoRA adaptation - Training…
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
49
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
The model expects and produces responses in a specific JSON format:
{
"reflection": "string - thoughts about previous actions and current situation",
"rationale": "string - reasoning for the current action",
"action_name": "string - one of: north, south, east, west, pick, drop",
"action_parameters": {},
"message": "string - message to other agents (optional)",
"add_memory": "string - information to remember for future steps"
}
Evaluated across multiple environments with the following average scores:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("aarontamte/LLama3.1-8B-cooperative-agent-finetune")
model = AutoModelForCausalLM.from_pretrained(
"aarontamte/LLama3.1-8B-cooperative-agent-finetune",
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Prepare input
prompt = "What is the capital of France?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
# Generate response
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
do_sample=True
)
# Decode response
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
pip install torch transformers