File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1818 run : |
1919 python -m pip install --upgrade pip
2020 pip install -r requirements-dev.txt
21- - name : Run tests
21+ - name : Run tests (skip GPU sampling)
22+ env :
23+ LLM_BENCH_SKIP_GPU : ' 1'
2224 run : make test
Original file line number Diff line number Diff line change 1111 psutil = None # type: ignore
1212 _PS_OK = False
1313
14- try :
15- import pynvml
14+ _NV_OK = False
15+ pynvml = None
16+ if not (os .environ .get ('LLM_BENCH_SKIP_GPU' ) == '1' ):
1617 try :
17- pynvml .nvmlInit ()
18- _NV_OK = True
18+ import pynvml
19+ try :
20+ pynvml .nvmlInit ()
21+ _NV_OK = True
22+ except Exception :
23+ _NV_OK = False
1924 except Exception :
25+ pynvml = None # type: ignore
2026 _NV_OK = False
21- except Exception :
22- pynvml = None # type: ignore
23- _NV_OK = False
2427
2528
2629@dataclass
You can’t perform that action at this time.
0 commit comments