Skip to main content

Add your description here

Project description

AMALIA

AMALIA is a decoder-only transformer architecture inherited from EuroLLM-9B, implemented in plain PyTorch (no external attention kernels).

Local usage (with uv)

Install uv:

# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Clone the repo and run the example:

git clone https://github.com/tiagomonteiro0715/amalia-core.git
cd amalia-core
uv sync
uv run main.py

uv sync installs the dependencies from pyproject.toml/uv.lock into a local .venv, and uv run executes inside it without needing to activate it manually.

Usage in Google Colab

!pip install uv
!uv pip install --system amalia

import torch
from amalia_core import AmaliaConfig, AmaliaForCausalLM

# Initialize the model with random weights
config = AmaliaConfig()
model = AmaliaForCausalLM(config)

# Run a forward pass on random token ids
input_ids = torch.randint(0, config.vocab_size, (1, 16))
logits = model(input_ids)

print(logits.shape)  # torch.Size([1, 16, 128000])

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

amalia-0.4.3.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

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

amalia-0.4.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file amalia-0.4.3.tar.gz.

File metadata

  • Download URL: amalia-0.4.3.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for amalia-0.4.3.tar.gz
Algorithm Hash digest
SHA256 12fae4e46bd2eb0ed7579704e72bbe20744c708fb98a41f6b04281d50d7787fd
MD5 ee9633c5a19ff4507c987706d878f8fe
BLAKE2b-256 3bf9e536947d2a22603e303f7f4ea0346a33282111ee77f5a16e0609a38f60d4

See more details on using hashes here.

File details

Details for the file amalia-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: amalia-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for amalia-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25e7b02214bc2d89e954b5360e75caab276a5041b1bf730a7a692a323c814a92
MD5 11596a7017aadf1718a940aefea08657
BLAKE2b-256 8bc623b4734b0612c9a0c25dfe9ed4b1376f22a55c805bb22098d07a06a36556

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