Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this with SX-Aurora TSUBASA #1

Open
yunkai1841 opened this issue Jan 13, 2024 · 3 comments
Open

How to use this with SX-Aurora TSUBASA #1

yunkai1841 opened this issue Jan 13, 2024 · 3 comments

Comments

@yunkai1841
Copy link

Is there any documentation or sample code?

@mergian
Copy link
Collaborator

mergian commented Apr 18, 2024

Hey @yunkai1841,

this project is a helper library for integration of the SX-Aurora into PyTorch for the NEC SOL compiler. Without SOL it's not really useful.

If you still want to try, here an example:

import torch
import veda.pytorch # loads the extension

A = torch.rand(1, 2, 3).ve()
B = torch.rand(1, 2, 3).ve()
C = A + B
print(C)

@owainkenwayucl
Copy link

As someone with one of these machines this seems... quite awkward. Is the only way to get Pytorch running on this device to get our sales rep to sign us up for the SOL closed beta?

@mergian
Copy link
Collaborator

mergian commented Jul 24, 2024

Dear @owainkenwayucl

short answer:
Yes, unfortunately it's the only way. But you can request access to the SOL4VE closed beta yourself. Follow this link and fill out the closed beta form or send me an email.

long answer:
The SX-Aurora is not build as AI accelerator and has non of the AI relevant technologies implemented, e.g., int8, fp4, fp8, fp16, bfloat16, tf32, tensor cores, etc. So the expected performance of SX-Aurora running AI is rather low compared to other AI specialized hardware. Therefore an investment into maintaining a 100% functioning PyTorch, TensorFlow, JAX, ... implementation for a hardware that is not specifically designed to run AI workloads, is very expensive and a huge waste of resources. However, SOL is an NEC internally used AI compiler that allows to easily add and maintain different hardware architectures with little effort. So we added a SX-Aurora plugin and created this minimalistic library for basic functionality within PyTorch (memalloc, memfree, copy, +, -, ...) as demonstrator, on minimal effort basis.

As said, if you are really interested, apply to the SOL4VE closed beta. There will also be a new release of SOL end of this month. But don't expect quantum leaps on hardware that is not specialized for AI.

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants