# Sequence language models in Julia

**URL:** <https://discourse.julialang.org/t/sequence-language-models-in-julia/130306>\
**Category:** Machine Learning\
**Created:** [June 28, 2025, 8:07pm UTC](https://discourse.julialang.org/t/sequence-language-models-in-julia/130306 "2025-06-28T20:07:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ForceBru](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/forcebru/32/21389_2.png) [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Post date:** [June 28, 2025, 11:16pm UTC](https://discourse.julialang.org/t/sequence-language-models-in-julia/130306/3 "2025-06-28T23:16:34Z")

</div>

Seems like Julia doesn’t have much going on in terms of training or inference for LLMs in general.

For example, “Julia language llama gpt” returns this thread from 2023: [LLaMA in Julia? - #12 by ImreSamu](https://discourse.julialang.org/t/llama-in-julia/95979/12). It mentions [GitHub - cafaxo/Llama2.jl: Julia package for inference and training of Llama-style language models](https://github.com/cafaxo/Llama2.jl) as a pure-Julia implementation of LLAMA. As of today, the last commit was a year ago (42 commits total), the repo has 140 stars. IMO this is extremely low for an LLM project given the current hype. I don’t think the package is “bad”, I think very few people know about it or are using it. Meanwhile PyTorch-based HuggingFace Transformers is widely used for running LLMs.

[GitHub - rai-llc/LanguageModels.jl: Load nanoGPT-style transformers in Julia. Code ported from @karpathy's llama2.c](https://github.com/rai-llc/LanguageModels.jl) was last active 2 years ago and has 61 stars. Meanwhile [GitHub - ggml-org/llama.cpp: LLM inference in C/C++](https://github.com/ggml-org/llama.cpp) has 82 _thousand_ stars. Why is it C++ instead of Julia? This is more of a rhetorical question…

A substantial LLM ecosystem ([GitHub - chengchingwen/Transformers.jl: Julia Implementation of Transformer models](https://github.com/chengchingwen/Transformers.jl), [GitHub - chengchingwen/BytePairEncoding.jl: Julia implementation of Byte Pair Encoding for NLP](https://github.com/chengchingwen/BytePairEncoding.jl), [GitHub - chengchingwen/NeuralAttentionlib.jl: Reusable functionality for defining custom attention/transformer layers.](https://github.com/chengchingwen/NeuralAttentionlib.jl) etc) is maintained by chengchingwen. The Transformers repo has a respectable 500+ stars, the rest - barely a hundred, even though their functionality is absolutely fundamental. BytePairEncoding.jl is basically Julia’s only alternative to tiktoken ([GitHub - openai/tiktoken: tiktoken is a fast BPE tokeniser for use with OpenAI's models.](https://github.com/openai/tiktoken), 15k stars), why isn’t it extremely popular? I’m using it right now, it seems to be the only way of accessing ChatGPTs tokenizers locally from Julia. Why doesn’t it have the thousand stars it deserves? Maybe Julia programmers aren’t that much into LLMs? Why? “Everyone else” seems to be extremely excited about them.

[GitHub - brian-j-smith/Mamba.jl: Markov chain Monte Carlo (MCMC) for Bayesian analysis in julia](https://github.com/brian-j-smith/Mamba.jl) is a package for Bayesian statistics (last commit 5 years ago), not language models. I couldn’t find any Julia implementation of Mamba the language model architecture.

---

_[View the full topic](https://discourse.julialang.org/t/sequence-language-models-in-julia/130306)._
