THUDM / LongCite-llama3.1-8b

huggingface.co
Total runs: 1.0K
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: December 16 2024
text-generation

Introduction of LongCite-llama3.1-8b

Model Details of LongCite-llama3.1-8b

LongCite-llama3.1-8b

🤗 [LongCite Dataset] • 💻 [Github Repo] • 📃 [LongCite Paper]

LongCite-llama3.1-8b is trained based on Meta-Llama-3.1-8B , and is capable of generating fine-grained citations in long-context question answering. The model supports a maximum context window of up to 128K tokens.

Environment: transforemrs>=4.43.0 .

A simple demo for deployment of the model:

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained('THUDM/LongCite-llama3.1-8b', trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained('THUDM/LongCite-llama3.1-8b', torch_dtype=torch.bfloat16, trust_remote_code=True, device_map='auto')

context = '''
W. Russell Todd, 94, United States Army general (b. 1928). February 13. Tim Aymar, 59, heavy metal singer (Pharaoh) (b. 1963). Marshall \"Eddie\" Conway, 76, Black Panther Party leader (b. 1946). Roger Bonk, 78, football player (North Dakota Fighting Sioux, Winnipeg Blue Bombers) (b. 1944). Conrad Dobler, 72, football player (St. Louis Cardinals, New Orleans Saints, Buffalo Bills) (b. 1950). Brian DuBois, 55, baseball player (Detroit Tigers) (b. 1967). Robert Geddes, 99, architect, dean of the Princeton University School of Architecture (1965–1982) (b. 1923). Tom Luddy, 79, film producer (Barfly, The Secret Garden), co-founder of the Telluride Film Festival (b. 1943). David Singmaster, 84, mathematician (b. 1938).
'''
query = "What was Robert Geddes' profession?"
result = model.query_longcite(context, query, tokenizer=tokenizer, max_input_length=128000, max_new_tokens=1024)

print("Answer:\n{}\n".format(result['answer']))
print("Statement with citations:\n{}\n".format(
  json.dumps(result['statements_with_citations'], indent=2, ensure_ascii=False)))
print("Context (divided into sentences):\n{}\n".format(result['splited_context']))

You can also deploy the model with vllm . See the code example in vllm_inference.py .

License

Llama-3.1 License

Citation

If you find our work useful, please consider citing LongCite:

@article{zhang2024longcite,
  title = {LongCite: Enabling LLMs to Generate Fine-grained Citations in Long-context QA} 
  author={Jiajie Zhang and Yushi Bai and Xin Lv and Wanjun Gu and Danqing Liu and Minhao Zou and Shulin Cao and Lei Hou and Yuxiao Dong and Ling Feng and Juanzi Li},
  journal={arXiv preprint arXiv:2409.02897},
  year={2024}
}

Runs of THUDM LongCite-llama3.1-8b on huggingface.co

1.0K
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About LongCite-llama3.1-8b huggingface.co Model

LongCite-llama3.1-8b huggingface.co

LongCite-llama3.1-8b huggingface.co is an AI model on huggingface.co that provides LongCite-llama3.1-8b's model effect (), which can be used instantly with this THUDM LongCite-llama3.1-8b model. huggingface.co supports a free trial of the LongCite-llama3.1-8b model, and also provides paid use of the LongCite-llama3.1-8b. Support call LongCite-llama3.1-8b model through api, including Node.js, Python, http.

LongCite-llama3.1-8b huggingface.co Url

https://huggingface.co/THUDM/LongCite-llama3.1-8b

THUDM LongCite-llama3.1-8b online free

LongCite-llama3.1-8b huggingface.co is an online trial and call api platform, which integrates LongCite-llama3.1-8b's modeling effects, including api services, and provides a free online trial of LongCite-llama3.1-8b, you can try LongCite-llama3.1-8b online for free by clicking the link below.

THUDM LongCite-llama3.1-8b online free url in huggingface.co:

https://huggingface.co/THUDM/LongCite-llama3.1-8b

LongCite-llama3.1-8b install

LongCite-llama3.1-8b is an open source model from GitHub that offers a free installation service, and any user can find LongCite-llama3.1-8b on GitHub to install. At the same time, huggingface.co provides the effect of LongCite-llama3.1-8b install, users can directly use LongCite-llama3.1-8b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

LongCite-llama3.1-8b install url in huggingface.co:

https://huggingface.co/THUDM/LongCite-llama3.1-8b

Url of LongCite-llama3.1-8b

LongCite-llama3.1-8b huggingface.co Url

Provider of LongCite-llama3.1-8b huggingface.co

THUDM
ORGANIZATIONS

Other API from THUDM

huggingface.co

Total runs: 659.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 05 2024
huggingface.co

Total runs: 611.5K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 04 2024
huggingface.co

Total runs: 243.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:March 11 2025
huggingface.co

Total runs: 95.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:March 13 2025
huggingface.co

Total runs: 69.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 23 2024
huggingface.co

Total runs: 28.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:March 03 2025
huggingface.co

Total runs: 23.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 23 2024
huggingface.co

Total runs: 15.8K
Run Growth: 0
Growth Rate: 0.00%
Updated:April 14 2025
huggingface.co

Total runs: 6.5K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 19 2023
huggingface.co

Total runs: 6.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:October 25 2024
huggingface.co

Total runs: 4.8K
Run Growth: 0
Growth Rate: 0.00%
Updated:April 22 2025
huggingface.co

Total runs: 3.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 02 2025
huggingface.co

Total runs: 2.8K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 04 2024
huggingface.co

Total runs: 993
Run Growth: 0
Growth Rate: 0.00%
Updated:October 20 2023
huggingface.co

Total runs: 928
Run Growth: 0
Growth Rate: 0.00%
Updated:October 20 2023
huggingface.co

Total runs: 853
Run Growth: 0
Growth Rate: 0.00%
Updated:January 27 2025
huggingface.co

Total runs: 607
Run Growth: 0
Growth Rate: 0.00%
Updated:January 02 2025
huggingface.co

Total runs: 299
Run Growth: 0
Growth Rate: 0.00%
Updated:March 02 2023
huggingface.co

Total runs: 188
Run Growth: 0
Growth Rate: 0.00%
Updated:August 04 2024
huggingface.co

Total runs: 167
Run Growth: 0
Growth Rate: 0.00%
Updated:October 20 2023
huggingface.co

Total runs: 119
Run Growth: 0
Growth Rate: 0.00%
Updated:December 10 2024
huggingface.co

Total runs: 75
Run Growth: 0
Growth Rate: 0.00%
Updated:November 20 2023
huggingface.co

Total runs: 62
Run Growth: 0
Growth Rate: 0.00%
Updated:July 09 2025
huggingface.co

Total runs: 43
Run Growth: 0
Growth Rate: 0.00%
Updated:July 09 2025
huggingface.co

Total runs: 43
Run Growth: 0
Growth Rate: 0.00%
Updated:July 24 2023
huggingface.co

Total runs: 28
Run Growth: 0
Growth Rate: 0.00%
Updated:July 09 2025
huggingface.co

Total runs: 25
Run Growth: 0
Growth Rate: 0.00%
Updated:March 02 2023
huggingface.co

Total runs: 14
Run Growth: 0
Growth Rate: 0.00%
Updated:July 24 2023
huggingface.co

Total runs: 12
Run Growth: 0
Growth Rate: 0.00%
Updated:July 22 2024