cunumeric
minGPT
cunumeric | minGPT | |
---|---|---|
9 | 35 | |
595 | 18,875 | |
0.0% | - | |
8.5 | 0.0 | |
1 day ago | 4 days ago | |
Python | Python | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cunumeric
- Announcing Chapel 1.32
-
Is Parallel Programming Hard, and, If So, What Can You Do About It? [pdf]
I am biased because this is my research area, but I have to respectfully disagree. Actor models are awful, and the only reason it's not obvious is because everything else is even more awful.
But if you look at e.g., the recent work on task-based models, you'll see that you can have literally sequential programs that parallelize automatically. No message passing, no synchronization, no data races, no deadlocks. Read your programs as if they're sequential, and you immediately understand their semantics. Some of these systems are able to scale to thousands of nodes.
An interesting example of this is cuNumeric, which allows you to take sequential Python programs that use NumPy, and by changing one line (the import statement), run automatically on clusters of GPUs. It is 100% pure awesomeness.
https://github.com/nv-legate/cunumeric
(I don't work on cuNumeric, but I do work on the runtime framework that cuNumeric uses.)
-
GPT in 60 Lines of NumPy
I know this probably isn't intended for performance, but it would be fun to run this in cuNumeric [1] and see how it scales.
[1]: https://github.com/nv-legate/cunumeric
-
Dask – a flexible library for parallel computing in Python
If you want built-in GPU support (and distributed), you should check out cuNumeric (released by NVIDIA in the last week or so). Also avoids needing to manually specify chunk sizes, like it says in a sibling comment.
https://github.com/nv-legate/cunumeric
-
Julia is the better language for extending Python
Try dask
Distribute your data and run everything as dask.delayed and then compute only at the end.
Also check out legate.numpy from Nvidia which promises to be a drop in numpy replacement that will use all your CPU cores without any tweaks on your part.
https://github.com/nv-legate/legate.numpy
-
Learning more about HPC as a python guy
Something for the HPC tools category: https://github.com/nv-legate/legate.numpy
-
Unifying the CUDA Python Ecosystem
You might be interested in Legate [1]. It supports the NumPy interface as a drop-in replacement, supports GPUs and also distributed machines. And you can see for yourself their performance results; they're not far off from hand-tuned MPI.
[1]: https://github.com/nv-legate/legate.numpy
Disclaimer: I work on the library Legate uses for distributed computing, but otherwise have no connection.
- Legate NumPy: An Aspiring Drop-In Replacement for NumPy at Scale
minGPT
- FLaNK AI Weekly for 29 April 2024
-
Ask HN: Daily practices for building AI/ML skills?
minGPT (Karpathy): https://github.com/karpathy/minGPT
Next, some foundational textbooks for general ML and deep learning:
-
[D] What are some examples of being clever with batching for training efficiency?
Language Model novice here. I was going through the README section of minGPT and read this line.
-
LLM Visualization: 3D interactive model of a GPT-style LLM network running inference.
The first network displayed with working weights is a tiny such network, which sorts a small list of the letters A, B, and C. This is the demo example model from Andrej Karpathy's minGPT implementation.
- LLM Visualization
- Learn Machine Learning
-
Facebook Prophet: library for generating forecasts from any time series data
Tried it once. Its promise is to take the dataset's seasonal trend into account, which makes sense for Facebook's original use case.
We ran it on such a dataset and found out that directly using https://github.com/karpathy/minGPT consistently gives a better result. So we ended up using the output of Prophet as an input feature to a neural network, but the result was not improved in any significant way.
-
Tokenization of numerical series
Sure, im trying to regenerate a bunch of complex numbers based on their absolute value. So im trying to embed these absolute values and then using gpt model(probably mini gpt) try to recover the original comples numbers. There is a certain connection between these complex numbers and their order which im not capable of explaining yet. Im hoping the model would be capable of recognizing certain sequences of these absolute values and match them with the desired complex counterparts (by training the model).
-
Anyone know of any articles on training a LLM from scratch on a single GPU?
minGPT (https://github.com/karpathy/minGPT)
-
Understanding LLMs(to the best of our knowledge)
Check out minGPT and nanoGPT from Karpathy, he puts out some of the best machine learning tutorials and teaching content.
What are some alternatives?
cupy - NumPy & SciPy for GPU
nanoGPT - The simplest, fastest repository for training/finetuning medium-sized GPTs.
CudaPy - CudaPy is a runtime library that lets Python programmers access NVIDIA's CUDA parallel computation API.
gpt-2 - Code for the paper "Language Models are Unsupervised Multitask Learners"
CUDA.jl - CUDA programming in Julia.
simpletransformers - Transformers for Information Retrieval, Text Classification, NER, QA, Language Modelling, Language Generation, T5, Multi-Modal, and Conversational AI
numba - NumPy aware dynamic Python compiler using LLVM
Pytorch-Simple-Transformer - A simple transformer implementation without difficult syntax and extra bells and whistles.
legate.pandas - An Aspiring Drop-In Replacement for Pandas at Scale
nn-zero-to-hero - Neural Networks: Zero to Hero
grcuda - Polyglot CUDA integration for the GraalVM
huggingface_hub - The official Python client for the Huggingface Hub.