Skip to main content

A collection of implementations of LLM, papers, and other models.

Project description

Ohara

This is my collection of implimention of llm,paper and things I hand in my mind I hand lot of fragmented code of implimention of diffrent model

this is attempt to make it eveything in one place
This lib is for runing/copying code for expriments
install with

git clone https://github.com/joey00072/ohara.git
pip install -e .

then

## download and pretokenize
python examples/prepare-dataset.py

## train 
## look at train.py its fairly easy
python examples/train_llama.py

# lighting fabric verison is also avalible (recommanded)
python examples/train_llama_fabric.py 

alt text

llama-20M trained on tinystores for 1.7B

inferance on phi2

## this will download model from hf and run it in torch.flaot16

python phi_inference.py 

## look at files and you can impliment rest of things easily, 
## I belive in you 😉

The lib to maximize FAFO

papaers and theory is on one side but code is truth, in the end things that matter that works (runs)
If you look into docs you can find some written things. this are mostly copied from my obsidian notes

WORK IS PROGESS (always)

papers

  1. SwiGLU | md
  2. Alibi Embeddings | md
  3. Rotary Embeddings | md
  4. LoRA
  5. LLAMA | md
  6. XPOS
  7. GPT | md
  8. Mamba
  9. renet

More things are not in this repo

  1. TinyLora
  2. Neural Style Transfer in Pytorch

TODO (A lot)

  • make infercer class better
  • make training loop better (use lightning fabric maybe)
  • Finetuning in structed way (I just rawdoag code when I need it)
  • DPO
  • make is py modele so I can create expriment folder and put all this in it

Fund My Caffeine Addiction

ko-fi

contribution guidelines

  • be nice,
  • code explaintions || docs are appricated
  • memes on pr recommend

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ohara-0.1.1.tar.gz (48.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ohara-0.1.1-py3-none-any.whl (66.5 kB view details)

Uploaded Python 3

File details

Details for the file ohara-0.1.1.tar.gz.

File metadata

  • Download URL: ohara-0.1.1.tar.gz
  • Upload date:
  • Size: 48.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ohara-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ccf1a654ba75edba2c43ca4d2fe053089f89b5397baca5e7daa501f7ee0ca4a3
MD5 50cb1cc4cada1b076428ce159bc77bd4
BLAKE2b-256 92b2c176fff7c3776dc3ab94404330f654e305acdd91907746f2bbf6e7814ee8

See more details on using hashes here.

File details

Details for the file ohara-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ohara-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 66.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ohara-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8439072f57fbc84e3a13b446af12fe08909c76684c78d7a9665d76ca349106b0
MD5 e3ba1d37654833cc00fac364a8637840
BLAKE2b-256 7d3f22684c71c29a10c6660486684101c12c6e10ff7f20fa4f57ce3d6794d3b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page