7 Jan
2023
7 Jan
'23
4:29 p.m.
notes: using model_kwargs=dict(device_map='auto') you can squeeze slightly larger models into a system npapi.set_example( '''Construct an array B that repeats array Y 4 times along the last dimension.''', '''B = np.tile(Y, 4)''' ) npapi.set_example( '''Swap the last two axes of an array D.''', '''D = D.swapaxes(-2, -1)''' ) npapi.set_example( '''Sort an array along the third axis.''', '''array.sort(3)''' )