python -m xmanager.cloud.vertex_test
..........E.Creating CustomJob
CustomJob created. Resource name: <MagicMock name='WrappedClient().create_custom_job().name' id='4726134768'>
To use this CustomJob in another session:
custom_job = aiplatform.CustomJob.get('<MagicMock name='WrappedClient().create_custom_job().name' id='4726134768'>')
View Custom Job:
<MagicMock name='_dashboard_uri()' id='4726135440'>
Job launched at: <MagicMock name='_dashboard_uri()' id='4726135440'>
.
======================================================================
ERROR: test_get_machine_spec_l4 (__main__.VertexTest.test_get_machine_spec_l4)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/user/xmanager/main/xmanager/cloud/vertex_test.py", line 166, in test_get_machine_spec_l4
machine_spec = vertex.get_machine_spec(job)
File "/Users/user/xmanager/main/xmanager/cloud/vertex.py", line 305, in get_machine_spec
spec['accelerator_type'] = aip_v1.AcceleratorType[accelerator_type]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.13/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/enum.py", line 791, in __getitem__
return cls._member_map_[name]
~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'NVIDIA_TESLA_L4_24TH'
----------------------------------------------------------------------
Ran 13 tests in 0.003s
FAILED (errors=1)
I see references to
L4GPUs, e.g. here:xmanager/xmanager/xm/resources.py
Line 72 in c41dc5d
xmanager/cloud/vertex_test.pycould look something like:Details
This gives an error:
Details