Downloads · 30 days
25
3% of all-time downloads
bactrianus/HotpotQA-OneStep-Retriever-Llama-3-8B-Instruct
HotpotQA-OneStep-Retriever-Llama-3-8B-Instruct is a text generation model from bactrianus. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.
<p align="center" <img src="assets/models.png" alt="Bactrainus Llama 3 model collection artwork" width="720" </p
Downloads · 30 days
25
3% of all-time downloads
All-time downloads
733
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
How the weights are stored.
BF167.5B · 93%
From the Hugging Face model README
meta-llama/Meta-Llama-3-8B-Instruct7842b5845df7be3618e077a618866a3e0826972eDespite the historical repository name, this model is not an open-domain retriever. It operates over the candidate paragraphs supplied with each HotpotQA example and jointly emits evidence and an answer.
This is a legacy Llama 3 checkpoint, not the revised manuscript's Llama 3.1 all-in-one baseline.
The model represents the non-modular Bactrainus comparison. One generation receives the question and all supplied candidates and is expected to produce supporting-fact references together with the final answer. This couples evidence and answer errors in one output.
Input should include:
Output is free-form text containing two logical objects: supporting-fact pairs and an answer. A strict parser must validate every title/index pair against the input candidates and parse the answer separately. Malformed evidence must not be silently repaired.
The exact historical prompt syntax is not encoded in the public model configuration.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
MODEL_ID = "bactrianus/HotpotQA-OneStep-Retriever-Llama-3-8B-Instruct"
REVISION = "7842b5845df7be3618e077a618866a3e0826972e"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, revision=REVISION)
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
revision=REVISION,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model.eval()
The checkpoint derives from Meta Llama 3 8B Instruct and HotpotQA-derived joint supervision. Its matching canonical training view is joint-selector-reader-sft in bactrianus/bactrainus-hotpotqa, pinned to dataset tag v1.0.0. The view contains all 90,447 training source IDs and remains joinable to every other view through source_id. It is a cleaned deterministic release; byte identity with the historical 2024 serialization is not asserted.
from datasets import load_dataset
train = load_dataset(
"bactrianus/bactrainus-hotpotqa",
"joint-selector-reader-sft",
split="train",
revision="v1.0.0",
)
The revised manuscript specifications describe later Llama 3.1 experiments and do not retrospectively define this legacy checkpoint's optimizer history.
No predictions, result files, or performance claims are included. Consult the paper for the all-in-one comparison and its single-run limitations.
The weights remain subject to the Meta Llama 3 Community License and Acceptable Use Policy.
Meta Llama 3 is licensed under the Meta Llama 3 Community License, Copyright Meta Platforms, Inc. All Rights Reserved.
Built with Meta Llama 3.
HotpotQA-derived data is licensed under CC BY-SA 4.0. Bactrainus code is Apache-2.0 licensed.
@article{barati2025bactrainus,
title = {Bactrainus: Optimizing Large Language Models for Multi-hop Complex Question Answering Tasks},
author = {Barati, Iman and Ghafouri, Arash and Minaei-Bidgoli, Behrouz},
journal = {arXiv preprint arXiv:2501.06286},
year = {2025},
doi = {10.48550/arXiv.2501.06286},
url = {https://arxiv.org/abs/2501.06286}
}