Skip to content

Commit bcb4767

Browse files
authored
Remove modelcards dependency (huggingface#2050)
* Switch to huggingface_hub.ModelCard * Remove modelcards dependency in favor of Jinja2
1 parent 5ea4be8 commit bcb4767

22 files changed

Lines changed: 80 additions & 43 deletions

File tree

docker/diffusers-flax-cpu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip && \
3434
datasets \
3535
hf-doc-builder \
3636
huggingface-hub \
37+
Jinja2 \
3738
librosa \
38-
modelcards \
3939
numpy \
4040
scipy \
4141
tensorboard \

docker/diffusers-flax-tpu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip && \
3636
datasets \
3737
hf-doc-builder \
3838
huggingface-hub \
39+
Jinja2 \
3940
librosa \
40-
modelcards \
4141
numpy \
4242
scipy \
4343
tensorboard \

docker/diffusers-onnxruntime-cpu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip && \
3434
datasets \
3535
hf-doc-builder \
3636
huggingface-hub \
37+
Jinja2 \
3738
librosa \
38-
modelcards \
3939
numpy \
4040
scipy \
4141
tensorboard \

docker/diffusers-onnxruntime-cuda/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip && \
3434
datasets \
3535
hf-doc-builder \
3636
huggingface-hub \
37+
Jinja2 \
3738
librosa \
38-
modelcards \
3939
numpy \
4040
scipy \
4141
tensorboard \

docker/diffusers-pytorch-cpu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip && \
3333
datasets \
3434
hf-doc-builder \
3535
huggingface-hub \
36+
Jinja2 \
3637
librosa \
37-
modelcards \
3838
numpy \
3939
scipy \
4040
tensorboard \

docker/diffusers-pytorch-cuda/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip && \
3333
datasets \
3434
hf-doc-builder \
3535
huggingface-hub \
36+
Jinja2 \
3637
librosa \
37-
modelcards \
3838
numpy \
3939
scipy \
4040
tensorboard \

examples/dreambooth/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ torchvision
33
transformers>=4.25.1
44
ftfy
55
tensorboard
6-
modelcards
6+
Jinja2

examples/dreambooth/requirements_flax.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ torch
55
torchvision
66
ftfy
77
tensorboard
8-
modelcards
8+
Jinja2

examples/research_projects/colossalai/requirement.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ torch
33
torchvision
44
ftfy
55
tensorboard
6-
modelcards
6+
Jinja2
77
transformers

examples/research_projects/dreambooth_inpaint/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ torchvision
44
transformers>=4.21.0
55
ftfy
66
tensorboard
7-
modelcards
7+
Jinja2

0 commit comments

Comments
 (0)