HITgram: A Platform for Experimenting with n-gram Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Dasgupta, Shibaranjani, Maity, Chandan, Mukherjee, Somdip, Singh, Rohan, Dutta, Diptendu, Jana, Debasish
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917868530040832
author Dasgupta, Shibaranjani
Maity, Chandan
Mukherjee, Somdip
Singh, Rohan
Dutta, Diptendu
Jana, Debasish
author_facet Dasgupta, Shibaranjani
Maity, Chandan
Mukherjee, Somdip
Singh, Rohan
Dutta, Diptendu
Jana, Debasish
contents Large language models (LLMs) are powerful but resource intensive, limiting accessibility. HITgram addresses this gap by offering a lightweight platform for n-gram model experimentation, ideal for resource-constrained environments. It supports unigrams to 4-grams and incorporates features like context sensitive weighting, Laplace smoothing, and dynamic corpus management to e-hance prediction accuracy, even for unseen word sequences. Experiments demonstrate HITgram's efficiency, achieving 50,000 tokens/second and generating 2-grams from a 320MB corpus in 62 seconds. HITgram scales efficiently, constructing 4-grams from a 1GB file in under 298 seconds on an 8 GB RAM system. Planned enhancements include multilingual support, advanced smoothing, parallel processing, and model saving, further broadening its utility.
format Preprint
id arxiv_https___arxiv_org_abs_2412_10717
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HITgram: A Platform for Experimenting with n-gram Language Models
Dasgupta, Shibaranjani
Maity, Chandan
Mukherjee, Somdip
Singh, Rohan
Dutta, Diptendu
Jana, Debasish
Computation and Language
Artificial Intelligence
Large language models (LLMs) are powerful but resource intensive, limiting accessibility. HITgram addresses this gap by offering a lightweight platform for n-gram model experimentation, ideal for resource-constrained environments. It supports unigrams to 4-grams and incorporates features like context sensitive weighting, Laplace smoothing, and dynamic corpus management to e-hance prediction accuracy, even for unseen word sequences. Experiments demonstrate HITgram's efficiency, achieving 50,000 tokens/second and generating 2-grams from a 320MB corpus in 62 seconds. HITgram scales efficiently, constructing 4-grams from a 1GB file in under 298 seconds on an 8 GB RAM system. Planned enhancements include multilingual support, advanced smoothing, parallel processing, and model saving, further broadening its utility.
title HITgram: A Platform for Experimenting with n-gram Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2412.10717