How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="allenai/intent-aware-lfqa-llama3-8b-intent-implicit")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("allenai/intent-aware-lfqa-llama3-8b-intent-implicit")
model = AutoModelForCausalLM.from_pretrained("allenai/intent-aware-lfqa-llama3-8b-intent-implicit", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Model

A distillation model checkpoint. For more details on intent aware training please read our paper!

Results

Will be updated soon.

Intended uses & limitations

This model is licensed under ODC-BY. It is intended for research and educational use in accordance with Ai2's Responsible Use Guidelines.

Training

The script used to train this model can be found here.

Links

Citation

@article{zhaoimproving,
  title={Improving Attributed Long-form Question Answering with Intent Awareness},
  author={Zhao, Xinran and Naik, Aakanksha and DeYoung, Jay and Chang, Joseph Chee and Hwang, Jena D and Wu, Tongshuang and Kishore, Varsha},
  journal={The Fourteenth International Conference on Learning Representations},
  year={2026}
}
Downloads last month
123
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for allenai/intent-aware-lfqa-llama3-8b-intent-implicit

Finetuned
(1086)
this model
Quantizations
1 model

Collection including allenai/intent-aware-lfqa-llama3-8b-intent-implicit