Downloads · 30 days
17
35% of all-time downloads
jiangbala/game-theory-v2
game-theory-v2 is a text generation model from jiangbala. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as other.
This model is a fine-tuned version of meta-llama/Llama-3.1-8B-Instruct on the gametheoryv2 dataset. It is specifically optimized for game-theoretic analysis and decision-making tasks.
Downloads · 30 days
17
35% of all-time downloads
All-time downloads
48
Public
Repo size
1 GB
Likes
0
Public
Click a slice to open those files.
.pt671 MB · 49%
From the Hugging Face model README
This model is a fine-tuned version of meta-llama/Llama-3.1-8B-Instruct on the game_theory_v2 dataset. It is specifically optimized for game-theoretic analysis and decision-making tasks.
By employing Low-Rank Adaptation (LoRA), this model maintains strong reasoning capabilities while achieving a 48% reduction in token usage during inference, significantly improving efficiency and lowering computational costs for multi-agent or game theory applications.
The model was fine-tuned on the game_theory_v2 dataset.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_name = "meta-llama/Llama-3.1-8B-Instruct"
adapter_name = "jiangbala/game-theory-v2"
# Load base model and tokenizer
model = AutoModelForCausalLM.from_pretrained(base_model_name, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
# Load LoRA adapter
model = PeftModel.from_pretrained(model, adapter_name)
# Format your prompt
prompt = "Analyze the Prisoner's Dilemma from a game theory perspective..."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))