• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -ex
4
5source "$(dirname "${BASH_SOURCE[0]}")/common_utils.sh"
6
7function install_huggingface() {
8  local version
9  commit=$(get_pinned_commit huggingface)
10  pip_install pandas==2.0.3
11  pip_install "git+https://github.com/huggingface/transformers@${commit}"
12}
13
14function install_timm() {
15  local commit
16  commit=$(get_pinned_commit timm)
17  pip_install pandas==2.0.3
18  pip_install "git+https://github.com/huggingface/pytorch-image-models@${commit}"
19  # Clean up
20  conda_run pip uninstall -y cmake torch torchvision triton
21}
22
23# Pango is needed for weasyprint which is needed for doctr
24conda_install pango
25install_huggingface
26install_timm
27