Skip to main content

SENTIA

SENTIA is a PyTorch implementation of a text generation model combining multiple neural network architectures like GRUs, Transformers, MHAs and MEPA.

Installation

pip install sentia

Usage

import torch
from sentia import SENTIA

# Create model
model = SENTIA(vocab_size=10000, embedding_dim=512, num_heads=8, num_layers=6, hidden_dim=512)

# Forward pass
input_ids = torch.randint(0, 10000, (1,32)) 
outputs = model(input_ids)

# Generate text 
generated = model.generate(input_ids, max_length=128)

Model Architecture

The SENTIA model consists of the following components:

  • Embedding layer
  • GRU layer
  • MEPA (Mutation Enhanced Plasticity Architecture) layers
  • Transformer decoder layers
  • Multi-head attention layer
  • Output head layers These components are combined to leverage the strengths of multiple architectures for improved text generation capabilities.

Training

The fit() method can bne used to train the model on a dataset. It handles the training loop, gradient accumulation, and RL calculations. Currently the scheduler parameter only supports StepLR

Metadata

Release files for sentia 1.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentia 1.17
File Size Uploaded
sentia-1.17.tar.gz 40.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sentia 1.17
File Interpreter ABI Platform
sentia-1.17-py3-none-any.whl Python 3 none any Details

Total release size: 85.2 kB

Release files / sentia-1.17.tar.gz

Download URL sentia-1.17.tar.gz
Size 40.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9055b48d93e4ca80c926dd9aef4100e51b6944dedb8ae1abeeeb93bfe82a3f7a
BLAKE2b-256 checksum
How to use checksums
e831b958e0fc6067ae22e4c569d49d0ad8d9e57251b9ca8312b94b0532abaa41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / sentia-1.17-py3-none-any.whl

Download URL sentia-1.17-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f1b97e35a4cf2f30bcd314b827dbdb40510c8ab64d00fa78a163a4546efeb2d
BLAKE2b-256 checksum
How to use checksums
25f50849c01280d703493ec2b2b01e60aa0b2eae9592c979f75dc0f341bf1755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.17 This release

2 release files

1.15

2 release files

1.1

2 release files

1.0.5

2 release files

1.0.3

2 release files

1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page