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
|
@@ -9,14 +9,13 @@ language:
|
|
| 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:**
|
|
|
|
| 9 |
|
| 10 |
## Mistral-RAG
|
| 11 |
- **Model Name:** Mistral-RAG
|
| 12 |
+
- **Base Model:** [Mistral-Ita-7b] (https://huggingface.co/DeepMount00/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 |
#### Generative Mode
|
| 20 |
- **Description:** The generative mode is designed for scenarios that require complex, synthesized responses. This mode integrates information from multiple sources and provides expanded explanations.
|
| 21 |
- **Ideal Use Cases:**
|