Run this model with HF Jobs

Run Miguelpef/bart-base-lora-3DPrompt on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Miguelpef/bart-base-lora-3DPrompt. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Miguelpef/bart-base-lora-3DPrompt on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Miguelpef/bart-base-lora-3DPrompt. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Miguelpef/bart-base-lora-3DPrompt. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Miguelpef/bart-base-lora-3DPrompt

Spanish version

The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.

Setting Up

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
from peft import PeftModel, PeftConfig

# Define the repository ID
repo_id = "Miguelpef/bart-base-lora-3DPrompt"

# Load the PEFT configuration from the Hub
peft_config = PeftConfig.from_pretrained(repo_id)

# Load the base model from the Hub
model = AutoModelForSeq2SeqLM.from_pretrained(peft_config.base_model_name_or_path)

# Load the tokenizer from the Hub
tokenizer = AutoTokenizer.from_pretrained(repo_id)

# Wrap the base model with PEFT
model = PeftModel.from_pretrained(model, repo_id)

# Now you can use the model for inference as before
def generar_prompt_desde_objeto(objeto):
    prompt = objeto
    inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
    outputs = model.generate(**inputs, max_length=100)
    prompt_generado = tokenizer.decode(outputs[0], skip_special_tokens=True)
    return prompt_generado

mi_objeto = "Mesa grande marrón" #Change this object
prompt_generado = generar_prompt_desde_objeto(mi_objeto)
print({prompt_generado})
Downloads last month
30
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Miguelpef/bart-base-lora-3DPrompt

Finetuned
(532)
this model

Dataset used to train Miguelpef/bart-base-lora-3DPrompt

Space using Miguelpef/bart-base-lora-3DPrompt 1