You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Lexicon-10M

Summary

Lexicon is an experimental language model project focused primarily on Bengali, with secondary support for English. It aims to develop lightweight conversational AI for everyday Bengali communication.

It uses a LLaMA-style decoder-only Transformer architecture with a custom tokenizer.

Model Details

Property Value
Parameters 10.85M
Architecture Decoder-only Transformer
Hidden Size 256
Intermediate Size 320
Layers 6
Attention Heads 4
Key-Value Heads 2
Attention Grouped-Query Attention (GQA)
Positional Encoding RoPE
Normalization RMSNorm
Activation SwiGLU
Context Length 4,096
Embeddings Tied

Tokenizer Details

  • Type: Byte-Level BPE
  • Vocabulary Size: 32,000
  • Normalization: NFC
  • Byte Fallback: Enabled
  • Primary Language: Bengali
  • Secondary Language: English

Loading the Model

Install the required dependencies:

pip install torch transformers safetensors

Load the model and tokenizer:

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "biltudas1/Lexicon-10M"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(
  model_id,
  dtype=torch.float32
)

model.eval()

License

Licensed under the PolyForm Noncommercial License 1.0.0.

Commercial use requires separate permission from the copyright holder.

Downloads last month
7
Safetensors
Model size
10.8M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support