Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/deepspeedai/DeepSpeed
/ device_name
Method
device_name
accelerator/hpu_accelerator.py:56–58 ·
view source on GitHub ↗
(self, device_index=None)
Source
from the content-addressed store, hash-verified
54
return
True
55
56
def
device_name(self, device_index=None):
57
# ignoring device_index.
58
return
'hpu'
59
60
def
device(self, device_index=None):
61
return
torch.device(self.device_name(device_index))
Callers
15
device
Method · 0.95
set_compile_backend
Method · 0.95
setup.py
File · 0.45
set_accelerator_visible
Function · 0.45
_launch_daemonic_procs
Method · 0.45
_launch_procs
Method · 0.45
get_gpt2_model
Function · 0.45
skip_on_arch
Function · 0.45
skip_on_cuda
Function · 0.45
bf16_required_version_check
Function · 0.45
train_cifar
Function · 0.45
test_cpu_adagrad_gpu_error
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_cpu_adagrad_gpu_error
Method · 0.36
init_softmax_inputs
Function · 0.36
init_matmul_inputs
Function · 0.36
test_fused_lion_equal
Method · 0.36
test_cpu_lion_gpu_error
Method · 0.36
test_DS4Sci_EvoformerAttention
Function · 0.36
get_q_props
Function · 0.36
get_scale_zero_point
Function · 0.36
test_float_quantize
Function · 0.36
test_fake_quant_dequant
Function · 0.36
create_models
Function · 0.36
create_models
Function · 0.36