You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

cat > /workspace/fine-tuning/clean-model/README.md << 'EOL'

Modelo Arenera - Mistral 7B Instruct Fine-tuned (LoRA)

Este modelo es un adaptador LoRA entrenado sobre mistralai/Mistral-7B-Instruct-v0.2 para responder preguntas sobre procesos de explotación en la arenera Hato Viejo.

Detalles del modelo

  • Modelo base: mistralai/Mistral-7B-Instruct-v0.2
  • Método de entrenamiento: LoRA (Low-Rank Adaptation)
  • Parámetros LoRA: r=16, alpha=32

Uso del modelo

Para usar este adaptador LoRA:

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

# Cargar el modelo base
base_model = AutoModelForCausalLM.from_pretrained(
    "mistralai/Mistral-7B-Instruct-v0.2",
    device_map="auto",
    trust_remote_code=True
)

# Cargar el adaptador LoRA
model = PeftModel.from_pretrained(
    base_model,
    "tu-usuario/mistral-arenera-lora"
)

tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")

# Ejemplo de uso
input_text = "¿Cuál es el objetivo principal del proceso de explotación en la arenera Hato Viejo?"
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support