Instructions to use DeepMount00/Mistral-RAG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepMount00/Mistral-RAG with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepMount00/Mistral-RAG")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DeepMount00/Mistral-RAG") model = AutoModelForCausalLM.from_pretrained("DeepMount00/Mistral-RAG") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use DeepMount00/Mistral-RAG with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepMount00/Mistral-RAG" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepMount00/Mistral-RAG", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DeepMount00/Mistral-RAG
- SGLang
How to use DeepMount00/Mistral-RAG with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "DeepMount00/Mistral-RAG" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepMount00/Mistral-RAG", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "DeepMount00/Mistral-RAG" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepMount00/Mistral-RAG", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DeepMount00/Mistral-RAG with Docker Model Runner:
docker model run hf.co/DeepMount00/Mistral-RAG
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,26 +7,24 @@ language:
|
|
| 7 |
- it
|
| 8 |
---
|
| 9 |
|
| 10 |
-
# Mistral-RAG
|
| 11 |
-
|
| 12 |
-
## Model Details
|
| 13 |
- **Model Name:** Mistral-RAG
|
| 14 |
- **Base Model:** Mistral-Ita-7b
|
| 15 |
- **Specialization:** Question and Answer Tasks
|
| 16 |
|
| 17 |
-
## Overview
|
| 18 |
Mistral-RAG is a refined fine-tuning of the Mistral-Ita-7b model, engineered specifically to enhance question and answer tasks. It features a unique dual-response capability, offering both generative and extractive modes to cater to a wide range of informational needs.
|
| 19 |
|
| 20 |
-
## Capabilities
|
| 21 |
|
| 22 |
-
### Generative Mode
|
| 23 |
- **Description:** The generative mode is designed for scenarios that require complex, synthesized responses. This mode integrates information from multiple sources and provides expanded explanations.
|
| 24 |
- **Ideal Use Cases:**
|
| 25 |
- Educational purposes
|
| 26 |
- Advisory services
|
| 27 |
- Creative scenarios where depth and detailed understanding are crucial
|
| 28 |
|
| 29 |
-
### Extractive Mode
|
| 30 |
- **Description:** The extractive mode focuses on speed and precision. It delivers direct and concise answers by extracting specific data from texts.
|
| 31 |
- **Ideal Use Cases:**
|
| 32 |
- Factual queries in research
|
|
@@ -34,7 +32,7 @@ Mistral-RAG is a refined fine-tuning of the Mistral-Ita-7b model, engineered spe
|
|
| 34 |
- Professional environments where accuracy and direct evidence are necessary
|
| 35 |
|
| 36 |
|
| 37 |
-
## How to Use
|
| 38 |
|
| 39 |
```python
|
| 40 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
| 7 |
- it
|
| 8 |
---
|
| 9 |
|
| 10 |
+
## Mistral-RAG
|
|
|
|
|
|
|
| 11 |
- **Model Name:** Mistral-RAG
|
| 12 |
- **Base Model:** Mistral-Ita-7b
|
| 13 |
- **Specialization:** Question and Answer Tasks
|
| 14 |
|
| 15 |
+
### Overview
|
| 16 |
Mistral-RAG is a refined fine-tuning of the Mistral-Ita-7b model, engineered specifically to enhance question and answer tasks. It features a unique dual-response capability, offering both generative and extractive modes to cater to a wide range of informational needs.
|
| 17 |
|
| 18 |
+
### Capabilities
|
| 19 |
|
| 20 |
+
#### Generative Mode
|
| 21 |
- **Description:** The generative mode is designed for scenarios that require complex, synthesized responses. This mode integrates information from multiple sources and provides expanded explanations.
|
| 22 |
- **Ideal Use Cases:**
|
| 23 |
- Educational purposes
|
| 24 |
- Advisory services
|
| 25 |
- Creative scenarios where depth and detailed understanding are crucial
|
| 26 |
|
| 27 |
+
#### Extractive Mode
|
| 28 |
- **Description:** The extractive mode focuses on speed and precision. It delivers direct and concise answers by extracting specific data from texts.
|
| 29 |
- **Ideal Use Cases:**
|
| 30 |
- Factual queries in research
|
|
|
|
| 32 |
- Professional environments where accuracy and direct evidence are necessary
|
| 33 |
|
| 34 |
|
| 35 |
+
### How to Use
|
| 36 |
|
| 37 |
```python
|
| 38 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|