naver / pisco-llama

huggingface.co
Total runs: 3
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: March 13 2025

Introduction of pisco-llama

Model Details of pisco-llama

Model Card for PISCO-llama

PISCO is a context compression model to be used for efficient inference when doing Retrieval Augmented Generation (RAG), particularly optimized for question answering.

PISCO contains two adapters around a backbone LLM:

  • An encoder adapter trained to perform compression of input contexts (the retrieved documents in RAG) into a set of 8 embedding vectors
  • A decoder adapter, which can take as input sets of embeddings vectors from documents and a query and provide an answer

With a compressed collection of documents to retrieve from, inference becomes about x5 faster. PISCO models have very small loss in accuracy on a wide set of QA benchmarks (0-3%).

Developed by : Naver Labs Europe
License : CC BY-NC 4.0.

  • Model : Pisco-llama
  • Backbone model : meta-llama/Llama-3.1-8B-Instruct
  • Model size : 8.11 billion parameters
  • Compression rate : x16: each document (of size up to 128 tokens) is converted into 8 embedding vectors.
Usage
from transformers import AutoModel

pisco = AutoModel.from_pretrained('naver/pisco-llama').to('cuda')

# Example documents and question:
documents = [
    [
        "Weldenia is a monotypic genus of flowering plant in the family Commelinaceae, first describ ed in 1829. It has one single species: Weldenia candida, which grows originally in Mexico and Guatemala.",
        "Hagsatera is a genus of flowering plants from the orchid family, Orchidaceae. There are two known species, native to Mexico and Guatemala",
        "Alsobia is a genus of flowering plants in the family Gesneriaceae, native to Mexico, Guatemala and Costa Rica. The two species are succulent, stoloniferous herbs and were previously included in the genus \"Episcia\". Recent molecular studies have supported the separation of \"Alsobia\" from \"Episcia\""
    ]
]

questions = ["Which genus of plant grows originally in Mexico and Guatemala, Phylica or Weldenia?"]

# End-to-end usage
out = pisco.generate_from_text(questions=questions, documents=documents, max_new_tokens=64)
print('Generated answer', out)

# Document compression:
embeddings = pisco.compress_documents(documents=documents[0])

# Generation from compressed documents:
out = pisco.generate_from_compressed_documents_and_questions(questions=questions, compressed_documents=embeddings)

The recommended usage is to provide documents cropped to about 128 tokens, which is common practice when doing RAG.

Model features
  • PISCO enables high accuracy responses from the compressed documents
  • PISCO is robust to various domains We tested its compression/decoding abilities on various sets of data.
  • PISCO enables x5 faster generation when the collection documents to retrieve from is pre-compressed.
License

This work is licensed under CC BY-NC 4.0.

Cite
TODO
Acknowledgements

Model trained at Naver Labs Europe
Team:

Runs of naver pisco-llama on huggingface.co

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

More Information About pisco-llama huggingface.co Model

More pisco-llama license Visit here:

https://choosealicense.com/licenses/cc-by-4.0

pisco-llama huggingface.co

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

pisco-llama huggingface.co Url

https://huggingface.co/naver/pisco-llama

naver pisco-llama online free

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

naver pisco-llama online free url in huggingface.co:

https://huggingface.co/naver/pisco-llama

pisco-llama install

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

pisco-llama install url in huggingface.co:

https://huggingface.co/naver/pisco-llama

Url of pisco-llama

pisco-llama huggingface.co Url

Provider of pisco-llama huggingface.co

naver
ORGANIZATIONS

Other API from naver

huggingface.co

Total runs: 102.6K
Run Growth: -2.3K
Growth Rate: -2.24%
Updated:June 30 2025
huggingface.co

Total runs: 399
Run Growth: -84
Growth Rate: -21.05%
Updated:June 30 2025
huggingface.co

Total runs: 170
Run Growth: -370
Growth Rate: -217.65%
Updated:June 30 2025
huggingface.co

Total runs: 115
Run Growth: 76
Growth Rate: 66.09%
Updated:March 17 2025
huggingface.co

Total runs: 67
Run Growth: -6
Growth Rate: -8.96%
Updated:September 26 2025
huggingface.co

Total runs: 8
Run Growth: 1
Growth Rate: 12.50%
Updated:March 13 2025