Reka Torch
Implementation of the model: "Reka Core, Flash, and Edge: A Series of Powerful Multimodal Language Models" in PyTorch. PAPER LINK
Install
pip3 install -U reka-torch
Usage
import torch # Importing the torch library
from reka_torch.model import Reka # Importing the Reka model from the reka_torch package
text = torch.randint(0, 10000, (2, 512)) # Generating a random tensor of shape (2, 512) with values between 0 and 10000
img = torch.randn(2, 3, 224, 224) # Generating a random tensor of shape (2, 3, 224, 224) with values from a normal distribution
audio = torch.randn(2, 1000) # Generating a random tensor of shape (2, 1000) with values from a normal distribution
video = torch.randn(2, 3, 16, 224, 224) # Generating a random tensor of shape (2, 3, 16, 224, 224) with values from a normal distribution
model = Reka(512) # Creating an instance of the Reka model with input size 512
out = model(text, img, audio, video) # Forward pass through the model with the input tensors
print(out.shape) # Printing the shape of the output tensor
License
MIT
Metadata
Release files for reka-torch 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reka_torch-0.0.2.tar.gz | 4.5 kB | Without provenance | Details for reka_torch-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reka_torch-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for reka_torch-0.0.2-py3-none-any.whl |
Total release size: 8.9 kB
Release files / reka_torch-0.0.2.tar.gz
| Download URL | reka_torch-0.0.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f339fb039ace2e6b5d349b42f28851fe22ae9ac90b173990a3a57b5e5a80a325
|
|
BLAKE2b-256 checksum How to use checksums |
81649ecfb0873e92e68a55cad4f93f1a5def7d382cd07bd2de69e4fb67d24175
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.0 Darwin/23.3.0
|
Release files / reka_torch-0.0.2-py3-none-any.whl
| Download URL | reka_torch-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e05b598de41dbaa2aed22111ae64acf9f28035b2d1a82836f5c643f6f9dcb5f7
|
|
BLAKE2b-256 checksum How to use checksums |
97e1fbc2e0c9c7a687d86599574f56e7f8e8b5f8bf32b5f9490710736d4b229d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.0 Darwin/23.3.0
|
Security for reka-torch 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.