Image-Text-to-Text
Transformers
English

Run this model with HF Jobs

Run lil-lab/respect 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/lil-lab/respect. 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/lil-lab/respect 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/lil-lab/respect. 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/lil-lab/respect. 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.

Retrospective Learning from Interactions

This repository contains the lil-lab/respect model, based on the ACL paper Retrospective Learning from Interactions. For more resources, please see https://lil-lab.github.io/respect and https://github.com/lil-lab/respect.

Sample Usage

To get started with the model, follow these steps:

1. Setting up Environment

Prepare your conda environment:

conda create -n respect python=3.9.18
pip install -r requirements.txt
pip install -e .

2. Download Data

from datasets import load_dataset

ds = load_dataset("lil-lab/respect", name="turn", split="train")

3. Load Model Checkpoints

Download checkpoints and load the model using transformers and peft:

import torch
from transformers import Idefics2ForConditionalGeneration
from peft import PeftModel

checkpoint = "HuggingFaceM4/idefics2-8b"
model_id = 'lil-lab/respect'

model = Idefics2ForConditionalGeneration.from_pretrained(
    checkpoint, torch_dtype=torch.bfloat16)
peft_model = PeftModel.from_pretrained(
    model, model_id, adapter_name="r6_bp", revision="r6_bp")

Reproducibility

To generate plots from the paper, run analysis/plots.ipynb in the GitHub repository.

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

Model tree for lil-lab/respect

Finetuned
(166)
this model

Space using lil-lab/respect 1

Collection including lil-lab/respect

Paper for lil-lab/respect