Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modelscope/modelscope
/ _patched_api
Method
_patched_api
tests/utils/test_hf_util_kernels.py:90–92 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
88
""
"
89
90
def
_patched_api(self):
91
_patch_kernels()
92
return
self.kernels_utils._get_hf_api()
93
94
def
test_patch_replaces_get_hf_api(self):
95
api = self._patched_api()
Callers
5
test_patch_replaces_get_hf_api
Method · 0.95
test_snapshot_download_routes_to_modelscope
Method · 0.95
test_hf_hub_download_raises_entry_not_found
Method · 0.95
test_file_exists_routes_to_hubapi
Method · 0.95
test_list_repo_refs_routes_to_hubapi
Method · 0.95
Calls
1
_patch_kernels
Function · 0.90
Tested by
no test coverage detected