arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.10717cs.CLcs.AI
收藏

HITgram:一个用于n-gram语言模型实验的平台

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

Heritage Institute Of Technology(heritage技术学院);Aunwesha Knowledge Technologies Private Limited(奥内韦沙知识技术私人有限公司)

Shibaranjani Dasgupta, Chandan Maity, Somdip Mukherjee, Rohan Singh, Diptendu Dutta, Debasish Jana

AI总结:

HITgram是一个轻量级n-gram语言模型实验平台,支持1-4元模型,通过上下文加权、拉普拉斯平滑和动态语料库管理提升预测精度,在资源受限环境中高效运行。

摘要:

大型语言模型(LLMs)功能强大但资源密集,限制了其可访问性。HITgram通过提供一个轻量级的n-gram模型实验平台来弥补这一差距,非常适合资源受限的环境。它支持从一元模型到四元模型,并整合了上下文敏感加权、拉普拉斯平滑和动态语料库管理等功能,以提高预测准确性,即使对于未见过的词序列也是如此。实验证明了HITgram的效率,实现了每秒50,000个词元的处理速度,并在62秒内从320MB的语料库生成二元模型。HITgram可高效扩展,在8GB RAM的系统上,从1GB文件构建四元模型耗时不到298秒。计划的增强功能包括多语言支持、高级平滑、并行处理和模型保存,进一步拓宽其实用性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑