See Blogpost and big_vision README.md for details about the model.
Local testing (CPU, Python 3.12):
pip -m venv env
. env/bin/activate
pip install -qr requirements-cpu.txt
python app.py
Environment variables:
MOCK_MODEL=yes: For quick UI testing.RAM_CACHE_GB=18: Enables caching of 3 bf16 models in memory: a single bf16
model is about 5860 MB. Use with care on spaces with little RAM. For example,
on a A10G large space you can cache five models in RAM, so you would set
RAM_CACHE_GB=30.HOST_COLOCATION=4: If host RAM/disk is shared between 4 processes (e.g. the
Huggingface A10 large Spaces).Loading models:
./models.py.huggingface_cli login.HF_TOKEN secret.See Blogpost and big_vision README.md for details about the model.
Local testing (CPU, Python 3.12):
pip -m venv env
. env/bin/activate
pip install -qr requirements-cpu.txt
python app.py
Environment variables:
MOCK_MODEL=yes: For quick UI testing.RAM_CACHE_GB=18: Enables caching of 3 bf16 models in memory: a single bf16
model is about 5860 MB. Use with care on spaces with little RAM. For example,
on a A10G large space you can cache five models in RAM, so you would set
RAM_CACHE_GB=30.HOST_COLOCATION=4: If host RAM/disk is shared between 4 processes (e.g. the
Huggingface A10 large Spaces).Loading models:
./models.py.huggingface_cli login.HF_TOKEN secret.