Text Ranking
Transformers
Safetensors
English
qwen3
text-generation
decision-model
retrieval
reranker
multi-hop
rag
llavrag
coding-agents
command-approval
llav-gate
Instructions to use llavapp/llav-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llavapp/llav-4b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("llavapp/llav-4b") model = AutoModelForCausalLM.from_pretrained("llavapp/llav-4b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download NOTICE from llavapp/llav-4b: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/llavapp/llav-4b/resolve/main/NOTICE
- Command line
-
hf download hf://llavapp/llav-4b/NOTICE
-
curl -L -o NOTICE https://huggingface.co/llavapp/llav-4b/resolve/main/NOTICE
2.08 kB
| llav 4B | |
| Copyright 2026 LLav Lab | |
| Licensed under the Apache License, Version 2.0 (see LICENSE). | |
| llav 4B is a modified version of Qwen3-Reranker-4B | |
| Copyright Alibaba Cloud (Qwen team), Apache License 2.0 | |
| https://huggingface.co/Qwen/Qwen3-Reranker-4B | |
| Modifications by LLav Lab: three LoRA fine-tuning stages and one checkpoint average, all merged into the base weights, | |
| to judge whether a passage is evidence needed for a question (see README.md, "Training"). A Platt mapping file | |
| (calib.json) was added. | |
| The training datasets keep their own licences; they are listed in README.md ("Datasets and licences"). | |
| Coding agents (skills/coding/): two LoRA adapters for llav 4B, Apache License 2.0, LLav Lab, used by llav-gate. | |
| Training data attribution: | |
| - tldr-pages (CC BY 4.0), the tldr-pages team and contributors, https://github.com/tldr-pages/tldr. Changes: command | |
| templates filled with fixture paths and hosts and executed in a sandbox to derive effect labels; page descriptions | |
| and examples quoted in evidence blocks of training inputs. | |
| - SWE-smith and SWE-smith-trajectories (MIT License, Copyright (c) 2025 John Yang), Yang et al. 2025, | |
| https://github.com/SWE-bench/SWE-smith. | |
| - SWE-bench-extra (CC BY 4.0), Nebius, https://huggingface.co/datasets/nebius/SWE-bench-extra. | |
| - SWE-Gym (MIT / Apache-2.0), Pan et al. 2024. | |
| - Source-code excerpts from permissively licensed open-source repositories (MIT, Apache-2.0, BSD-2-Clause, | |
| BSD-3-Clause, ISC, 0BSD), listed in llav-gate's LICENSE-AUDIT.md. | |
| - The general decision replay of llav 4B (see README.md, "Datasets and licences"). | |
| Labels come from sandbox execution effects, documented command semantics, tests and dataset gold; none comes from an | |
| external model. Some training inputs (task lines, previous agent steps and synthetic issue texts from SWE-smith and its | |
| trajectories) were written by language models (Claude 3.7 Sonnet, Claude 3.5 Sonnet, GPT-4o, and an unnamed model for | |
| SWE-smith issue texts); they were used only as inputs. No Llama-generated text and no evaluation-set items were used. | |