theosorus/GPT2-Hasktorch
GPT2 implementation in Haskell with the Hasktorch library, inspired by Andrej Karpathy's Pytorch implementation.
This project offers a functional re-implementation of the GPT-2 language model in Haskell. It takes large text datasets as input and produces a trained language model capable of understanding and generating human-like text patterns. This is ideal for researchers and advanced practitioners in natural language processing who want to experiment with or develop on generative AI models using the Haskell ecosystem.
No commits in the last 6 months.
Use this if you are a research engineer or academic who wants to explore, understand, and build upon the architecture of GPT-2 using a functional programming paradigm like Haskell.
Not ideal if you need a ready-to-use text generation tool, as the text generation function is not yet implemented.
Stars
36
Forks
2
Language
Haskell
License
BSD-3-Clause
Category
Last pushed
Jun 17, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/theosorus/GPT2-Hasktorch"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
jingyaogong/minimind
🚀🚀 「大模型」2小时完全从0训练26M的小参数GPT!🌏 Train a 26M-parameter GPT from scratch in just 2h!
kyegomez/TeraGPT
Train a production grade GPT in less than 400 lines of code. Better than Karpathy's verison and GIGAGPT
noah-hein/mazeGPT
AI model for making mazes that extends OpenAIs GPT2 model
RohitPawar001/GPT-2-Implementation
This repository contains the implementation of OpenAI's GPT-2 with LORA, QLORA, RLHF, PPO,GRPO,...
miguelvanegas-c/LLMImplementation
This repository demonstrates how to build a functional AI agent using LangChain in Python,...