Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

41%
+3 −5
Q&A Building a language model completely from scratch

What I would like to do I would like to try to build a language model 100% from scratch if possible, for a learning experience. That means no external libraries and no pre-curated datasets. It ...

1 answer  ·  posted 10mo ago by Julius H.‭  ·  last activity 10mo ago by matthewsnyder‭

#2: Post edited by user avatar meta user‭ · 2024-02-15T04:05:15Z (10 months ago)
organization, grammar, formatting
  • Language model completely from scratch
  • Building a language model completely from scratch
  • I would like to try to build a language model 100% from scratch if possible. That means no external libraries and no pre-curated datasets. It is ok if the performance is terrible. It is meant to be a learning experience. That said, if it is usable for anything, that might be a plus.
  • My best language is Python, but I’m open to doing this in a low level language, like C or Rust; or, possibly JavaScript, or even Haskell. I guess this means it is the abstract structure of the program that interests me, not as much the specific language-specific code that implements it.
  • My idea is roughly that I would code a very simple version of the algorithm used in an LLM, presumably a transformer if possible, and to generate the data on my own, I would either write my own independent web crawler, or it would be really cool if I could train it off my own language data that I generate somehow - even by talking to the model. Even if in a very restricted and small vocabulary or something.
  • Please submit concrete information about the architecture of the code, as opposed to external reference materials.
  • Thank you.
  • What I would like to do
  • -
  • I would like to try to build a language model 100% from scratch if possible, for a learning experience. That means no external libraries and no pre-curated datasets.
  • - It is ok if the performance is terrible.
  • - If it is usable for anything, that might be a plus.
  • Languages
  • -
  • My best language is Python, but I’m open to doing this in a low-level language, like C or Rust; or, possibly JavaScript, or even Haskell. I guess this means it is the abstract structure of the program that interests me, not as much the specific language-specific code that implements it.
  • Rough idea
  • -
  • I would code a very simple version of the algorithm used in an LLM, presumably a transformer if possible, and to generate the data on my own, I would either write my own independent web crawler, or it would be cool if I could train it off my own language data that I generate somehow - even by talking to the model. Even if in a very restricted and small vocabulary or something.
  • What I need help with
  • -
  • Please submit concrete information about the architecture of the code, as opposed to external reference materials.
#1: Initial revision by user avatar Julius H.‭ · 2024-02-10T21:25:53Z (10 months ago)
Language model completely from scratch 
I would like to try to build a language model 100% from scratch if possible. That means no external libraries and no pre-curated datasets. It is ok if the performance is terrible. It is meant to be a learning experience. That said, if it is usable for anything, that might be a plus.

My best language is Python, but I’m open to doing this in a low level language, like C or Rust; or, possibly JavaScript, or even Haskell. I guess this means it is the abstract structure of the program that interests me, not as much the specific language-specific code that implements it.

My idea is roughly that I would code a very simple version of the algorithm used in an LLM, presumably a transformer if possible, and to generate the data on my own, I would either write my own independent web crawler, or it would be really cool if I could train it off my own language data that I generate somehow - even by talking to the model. Even if in a very restricted and small vocabulary or something.

Please submit concrete information about the architecture of the code, as opposed to external reference materials.

Thank you.