File size: 883 Bytes
6e4e9d1 b25f8b7 6e4e9d1 b25f8b7 6e4e9d1 b25f8b7 6e4e9d1 fcaea19 75a98eb 6e4e9d1 75a98eb 6e4e9d1 fcaea19 3eb2551 fcaea19 84805a1 fcaea19 6e4e9d1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
---
license: cc-by-4.0
datasets:
- lksy/ru_instruct_gpt4
- IlyaGusev/ru_turbo_saiga
- IlyaGusev/ru_sharegpt_cleaned
- IlyaGusev/oasst1_ru_main_branch
language:
- ru
pipeline_tag: text-generation
---
This is a generative model converted to fp16 format based on [IlyaGusev/saiga_mistral_7b_lora](https://huggingface.co/IlyaGusev/saiga_mistral_7b_lora)
Install vLLM:
```bash
pip install vllm
```
Start server:
```bash
python -u -m vllm.entrypoints.openai.api_server --host 0.0.0.0 --model Gaivoronsky/Mistral-7B-Saiga
```
Client:
```python
import openai
openai.api_base = "http://localhost:8000/v1"
openai.api_key = "none"
response = openai.ChatCompletion.create(
model="Gaivoronsky/Mistral-7B-Saiga",
messages=[{"role": "user", "content": 'Сколько весит жираф?'}],
max_tokens=512,
)
response['choices'][0]['message']['content']
``` |