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.
Instructions to use lil-lab/respect with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lil-lab/respect with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="lil-lab/respect")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lil-lab/respect", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lil-lab/respect with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lil-lab/respect" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lil-lab/respect", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lil-lab/respect
- SGLang
How to use lil-lab/respect with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "lil-lab/respect" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lil-lab/respect", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "lil-lab/respect" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lil-lab/respect", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use lil-lab/respect with Docker Model Runner:
docker model run hf.co/lil-lab/respect
Improve model card: Add paper link, pipeline tag, library name, links, and usage
Browse filesThis PR significantly enhances the model card for the `lil-lab/respect` model by:
- Updating the paper reference to the official Hugging Face paper: [The Era of Real-World Human Interaction: RL from User Conversations](https://huggingface.co/papers/2509.25137).
- Adding `pipeline_tag: image-text-to-text` for improved discoverability on the Hub.
- Specifying `library_name: transformers` based on the explicit usage of the `transformers` library in the GitHub README.
- Including direct links to the project page and GitHub repository.
- Providing a concise overview of the model based on the paper abstract.
- Adding a comprehensive sample usage section, including environment setup, data download, and model loading, directly from the GitHub README.
123456789---license: apache-2.0language:- enbase_model:- HuggingFaceM4/idefics2-8b---<https://arxiv.org/abs/2410.13852>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263---base_model:- HuggingFaceM4/idefics2-8blanguage:- enlicense: apache-2.0pipeline_tag: image-text-to-textlibrary_name: transformers---# The Era of Real-World Human Interaction: RL from User ConversationsThis repository contains the `lil-lab/respect` model, based on the paper [The Era of Real-World Human Interaction: RL from User Conversations](https://huggingface.co/papers/2509.25137).## Model DescriptionThe model introduces Reinforcement Learning from Human Interaction (RLHI), a paradigm that learns directly from in-the-wild user conversations to achieve continual model improvement and multifaceted alignment. It develops two complementary methods: (1) RLHI with User-Guided Rewrites, which revises unsatisfactory model outputs based on users' natural-language follow-up responses, and (2) RLHI with User-Based Rewards, which learns via a reward model conditioned on knowledge of the user's long-term interaction history (termed persona). These methods link long-term user personas to turn-level preferences via persona-conditioned preference optimization.## Project Resources* **Project Page:** [https://lil-lab.github.io/respect](https://lil-lab.github.io/respect)* **Code Repository:** [https://github.com/lil-lab/respect](https://github.com/lil-lab/respect)## Sample UsageTo get started with the model, follow these steps:### 1. Setting up EnvironmentPrepare your conda environment:```bashconda create -n respect python=3.9.18pip install -r requirements.txtpip install -e .```### 2. Download Data```pythonfrom datasets import load_datasetds = load_dataset("lil-lab/respect", name="turn", split="train")```### 3. Load Model CheckpointsDownload checkpoints and load the model using `transformers` and `peft`:```pythonimport torchfrom transformers import Idefics2ForConditionalGenerationfrom peft import PeftModelcheckpoint = "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")```## ReproducibilityTo generate plots from the paper, run `analysis/plots.ipynb` in the [GitHub repository](https://github.com/lil-lab/respect).