Spaces:
Sleeping
Sleeping
File size: 1,197 Bytes
6e3fd51 df0ce09 |
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
---
title: Fades Api
emoji: 🏆
colorFrom: green
colorTo: yellow
sdk: docker
pinned: false
license: cc-by-nc-2.0
short_description: API for fades LLM
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
## Build
```
docker build -t fades-api .
```
## Start
```
docker run --rm -it -p 7860:7860 -v "${PWD}\data:/data" fades-api
```
## Switch to another version of the model
Quantized model : 4Go, ideal for CPU
```python
from huggingface_hub import hf_hub_download
REPO_ID = "maxime-antoine-dev/maxime-antoine-dev/fades-mistral-v02-gguf
REPO_TYPE = "model"
# v1
p1 = hf_hub_download(repo_id=REPO_ID, filename=HF_FILENAME, revision="v1")
print("v1 path:", p1)
# v2
p2 = hf_hub_download(repo_id=REPO_ID, filename=HF_FILENAME, revision="v2")
print("v2 path:", p2)
```
Full Model 13Go : ideal for GPU
```python
from huggingface_hub import hf_hub_download
REPO_ID = "maxime-antoine-dev/maxime-antoine-dev/fades
REPO_TYPE = "model"
# v1
p1 = hf_hub_download(repo_id=REPO_ID, filename=HF_FILENAME, revision="v1")
print("v1 path:", p1)
# v2
p2 = hf_hub_download(repo_id=REPO_ID, filename=HF_FILENAME, revision="v2")
print("v2 path:", p2)
```
|