Skip to main content

A math-focused machine learning library with efficient quantization and advanced tokenization

Reason this release was yanked:

to understand it

Project description

VishwamAI

VishwamAI is a sophisticated machine learning library focusing on efficient model quantization, advanced tokenization, and mathematical reasoning capabilities.

Features

  • Advanced Tokenization: Conceptual tokenizer with semantic clustering and special token handling
  • Efficient Quantization: Support for FP8 and BF16 quantization
  • Mathematical Reasoning: Integration with GSM8K dataset for advanced mathematical problem-solving
  • Model Architecture: Flexible transformer-based architecture with configurable parameters
  • Training Utilities: Support for distributed training, mixed precision, and gradient accumulation

Installation

pip install -e .

Quick Start

from vishwamai.model import VishwamaiModel
from vishwamai.conceptual_tokenizer import ConceptualTokenizer

# Initialize tokenizer and model
tokenizer = ConceptualTokenizer()
model = VishwamaiModel()

# Example usage
text = "Solve: If John has 5 apples and gives 2 to Mary, how many does he have left?"
tokens = tokenizer.encode(text)
output = model.generate(tokens)

Testing

Run the test suite:

pytest -v

Requirements

  • Python >= 3.8
  • PyTorch >= 2.1.0
  • CUDA toolkit (for GPU support)
  • Additional dependencies listed in setup.py

Project Structure

vishwamai/
├── conceptual_tokenizer.py   # Advanced tokenization implementation
├── kernel.py                 # CUDA kernels and quantization
├── model.py                 # Core model architecture
├── training.py              # Training utilities
└── configs/                 # Model configurations

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting pull requests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vishwamai-0.1.0.tar.gz (6.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vishwamai-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file vishwamai-0.1.0.tar.gz.

File metadata

  • Download URL: vishwamai-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vishwamai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b996097e02e43cdb29f5e57379f47b498100b210ae42d05190abe23389d39f71
MD5 be49aaf484e1a11ea34173e97d5839a7
BLAKE2b-256 865f39683731b399bd77f5c2d1aa34a082aa44e8a46a333d6a240ed00876039b

See more details on using hashes here.

File details

Details for the file vishwamai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vishwamai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vishwamai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2293c8f07a3c5f8513dd8063cf33b1621e788c7e61b0e6138c7662bf8faec15
MD5 8432317f5b44c5a94b025d3ac86ae1d7
BLAKE2b-256 05564edd80ee29851d4a6527a97f775d77f198bab58114a0bcc9e828fa5a2888

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page