DeepMount00 / Minerva-3B-base-RAG

huggingface.co
Total runs: 20
24-hour runs: -4
7-day runs: -25
30-day runs: -57
Model's Last Updated: May 09 2024
text-generation

Introduction of Minerva-3B-base-RAG

Model Details of Minerva-3B-base-RAG

Model Card for Minerva-3B-base-QA-v1.0

Minerva-3B-base-RAG is a specialized question-answering (QA) model derived through the finetuning of Minerva-3B-base-v1.0 . This finetuning was independently conducted to enhance the model's performance for QA tasks, making it ideally suited for use in Retrieval-Augmented Generation (RAG) applications.

Overview

How to Use
import transformers
import torch

model_id = "DeepMount00/Minerva-3B-base-RAG"

# Initialize the pipeline.
pipeline = transformers.pipeline(
    "text-generation",
    model=model_id,
    model_kwargs={"torch_dtype": torch.bfloat16},
    device_map="auto",
)

def generate_text(pipeline, context, question):
    input_text = f"[INST]Contesto: {context}\nDomanda:{question}\n[/INST]"
    output = pipeline(
        input_text,
        max_new_tokens=512,
    )
    generated_text = output[0]['generated_text']
    response_text = generated_text.split("[/INST]", 1)[1].strip()
    return response_text.replace("<end_of_text>", "")

contesto = """La torre degli Asinelli è una delle cosiddette due torri di Bologna, simbolo della città, situate in piazza di porta Ravegnana, all'incrocio tra le antiche strade San Donato (ora via Zamboni), San Vitale, Maggiore e Castiglione. Eretta, secondo la tradizione, fra il 1109 e il 1119 dal nobile Gherardo Asinelli, la torre è alta 97,20 metri, pende verso ovest per 2,23 metri e presenta all'interno una scalinata composta da 498 gradini. Ancora non si può dire con certezza quando e da chi fu costruita la torre degli Asinelli. Si presume che la torre debba il proprio nome a Gherardo Asinelli, il nobile cavaliere di fazione ghibellina al quale se ne attribuisce la costruzione, iniziata secondo una consolidata tradizione l'11 ottobre 1109 e terminata dieci anni dopo, nel 1119."""
domanda = """In che città si trova la torre degli Asinelli?"""

answer = generate_text(pipeline, contesto, domanda)
print(answer)

Runs of DeepMount00 Minerva-3B-base-RAG on huggingface.co

20
Total runs
-4
24-hour runs
-8
3-day runs
-25
7-day runs
-57
30-day runs

More Information About Minerva-3B-base-RAG huggingface.co Model

More Minerva-3B-base-RAG license Visit here:

https://choosealicense.com/licenses/apache-2.0

Minerva-3B-base-RAG huggingface.co

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

Minerva-3B-base-RAG huggingface.co Url

https://huggingface.co/DeepMount00/Minerva-3B-base-RAG

DeepMount00 Minerva-3B-base-RAG online free

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

DeepMount00 Minerva-3B-base-RAG online free url in huggingface.co:

https://huggingface.co/DeepMount00/Minerva-3B-base-RAG

Minerva-3B-base-RAG install

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

Minerva-3B-base-RAG install url in huggingface.co:

https://huggingface.co/DeepMount00/Minerva-3B-base-RAG

Url of Minerva-3B-base-RAG

Minerva-3B-base-RAG huggingface.co Url

Provider of Minerva-3B-base-RAG huggingface.co

DeepMount00
ORGANIZATIONS

Other API from DeepMount00

huggingface.co

Total runs: 1.4K
Run Growth: 1.0K
Growth Rate: 75.00%
Updated:April 25 2024