| ▲ | fooblaster 9 hours ago | |
Great! How do you program it? | ||
| ▲ | alanma 6 hours ago | parent [-] | |
A couple core commands in our ISA detailed on our GitHub, map your problem to matrix ops, here's a brief excerpt, but our tpu_compiler and tpu_driver are the core to programming your own: from tpu_compiler import TPUCompiler, TPURuntime class Custom(nn.Module):
model = train_model(your_data)# compile to the tiny tiny TPU format compiler = TPUCompiler() compiled = compiler.compile(model) # run and enjoy :) runtime = TPURuntime(tpu) result = runtime.inference(compiled, input_data) Will update soon with some better documentation, but hopefully this will get you started! - Alan and Abiral | ||