File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ dependencies = [
3636 " httpx >=0.26,<1" ,
3737 " humanfriendly >=10" ,
3838 " jinja2 >=3" ,
39- " huggingface-hub >0.17" ,
4039 " marshmallow >=3.20,<4" ,
4140 " omegaconf >=2.3,<3" ,
4241 " psutil >=7,<8" ,
@@ -74,6 +73,9 @@ docs = [
7473 " sphinx-codeautolink>=0.15" ,
7574 " sphinx-copybutton>=0.5" ,
7675]
76+ huggingface = [
77+ " huggingface-hub>0.17" ,
78+ ]
7779ssh = [
7880 " paramiko>=3.3" ,
7981 " fabric>=3" ,
Original file line number Diff line number Diff line change 22from typing import Optional , Union
33from experimaestro .core .context import SerializationContext , SerializedPath
44from experimaestro .core .objects import ConfigInformation , ConfigMixin
5- from huggingface_hub import ModelHubMixin , hf_hub_download , snapshot_download
65import os
76
7+ try :
8+ from huggingface_hub import ModelHubMixin , hf_hub_download , snapshot_download
9+ except ImportError :
10+ raise ImportError (
11+ "huggingface-hub is required for ExperimaestroHFHub. "
12+ "Install it with: pip install experimaestro[huggingface]"
13+ )
14+
815
916class ExperimaestroHFHub (ModelHubMixin ):
1017 """Defines models that can be uploaded/downloaded from the Hub
Original file line number Diff line number Diff line change @@ -833,6 +833,9 @@ class SlurmOptions:
833833 nodelist : Optional [str ] = None
834834 """Request a specific list of hosts"""
835835
836+ ntasks_per_node : Optional [int ] = None
837+ """Number of tasks to run on each node"""
838+
836839 # GPU-related
837840 gpus : Optional [int ] = None
838841 """Number of GPUs"""
You can’t perform that action at this time.
0 commit comments