You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
) provides building blocks for the following AI and multi-modal / multi-media project use cases are supported in this project:
25
+
26
+
-[Transformer models based on HuggingFace transformers](https://hub.docker.com/r/labnow/huggingface-model/tags)
27
+
-[OCR (based on paddlepaddle)](https://hub.docker.com/search?q=labnow%2Fpaddleocr) and [Document Intelligence](https://hub.docker.com/search?q=labnow%2Fdoc-ai)
17
28
- Image/Video and Audio feature extraction
18
-
-[OCR](https://hub.docker.com/search?q=qpod%2Fpaddleocr) and [Document Intelligence](https://hub.docker.com/search?q=qpod%2Fdoc-ai)
19
-
-[Transformer models based on HuggingFace transformers](https://hub.docker.com/r/qpod/huggingface-model/tags)
These docker images help you to store and download Huggingface Models via docker images.
7
7
@@ -12,7 +12,7 @@ This is especially useful when you are:
12
12
13
13
## Download HuggingFace Models as docker images
14
14
15
-
You can download the model files simply using `docker pull qpod/huggingface-model:bert-base-cased`, in which the tag name is the HuggingFace model repo name.
15
+
You can download the model files simply using `docker pull labnow/huggingface-model:bert-base-cased`, in which the tag name is the HuggingFace model repo name.
16
16
17
17
The models files are stored at the `/home` directory in the docker images by default.
18
18
@@ -25,26 +25,26 @@ For example, given a HuggingFace model `HF_MODEL_NAME='microsoft/DialoGPT-small'
25
25
26
26
The shell code to do this conversion is: `HF_MODEL_TAG=$(echo ${HF_MODEL_NAME} | sed 's/\//./g' | tr '[:upper:]' '[:lower:]')`.
27
27
28
-
We have alrady pre-built several popular models, you can find a list of models here: https://hub.docker.com/r/qpod/huggingface-model/tags
28
+
We have alrady pre-built several popular models, you can find a list of models here: https://hub.docker.com/r/labnow/huggingface-model/tags
29
29
30
30
## Export the model files to local file system
31
31
32
32
You can use the following commnad to export the model files stored in the docker images to your local file system.
33
33
34
34
```bash
35
-
# for model names, refer to dockerhub: https://hub.docker.com/r/qpod/huggingface-model/tags
35
+
# for model names, refer to dockerhub: https://hub.docker.com/r/labnow/huggingface-model/tags
36
36
MODEL_NAME="bert-base-chinese"
37
37
38
38
# choose a folder to store model files
39
39
LOCAL_REPO="/tmp/models"
40
40
41
41
mkdir -pv ${LOCAL_REPO}&&cd${LOCAL_REPO}
42
-
docker run --rm -it -v $(pwd):/tmp "qpod/huggingface-model:${MODEL_NAME}"
42
+
docker run --rm -it -v $(pwd):/tmp "labnow/huggingface-model:${MODEL_NAME}"
43
43
```
44
44
45
45
## Build your own docker image which stores a customized HF model
46
46
47
-
refer to: https://github.com/QPod/media-lab/tree/main/docker_HuggingFace-model
47
+
refer to: https://github.com/LabNow-ai/lab-media/tree/main/docker_HuggingFace-model
0 commit comments