tahamajs's picture
download
raw
498 Bytes
import torch
from bitnet import BitMamba
# Create a tensor of size (2, 10) with random values between 0 and 100
x = torch.randint(0, 100, (2, 10))
# Create an instance of the BitMamba model with input size 512, hidden size 100, output size 10, and depth size 6
model = BitMamba(512, 100, 10, 6, return_tokens=True)
# Pass the input tensor through the model and get the output
output = model(x)
# Print the output tensor
print(output)
# Print the shape of the output tensor
print(output.shape)

Xet Storage Details

Size:
498 Bytes
·
Xet hash:
f9a586b7a1159f9f6b9753c5960bbd60cddb1443dc4e7f6a65155090cf35575e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.