Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngerakines/llm_fundamentals
https://github.com/ngerakines/llm_fundamentals
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ngerakines/llm_fundamentals
- Owner: ngerakines
- License: mit
- Created: 2024-06-04T15:10:50.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T13:51:36.000Z (5 months ago)
- Last Synced: 2024-07-18T17:23:00.575Z (5 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# llm_fundamentals
This repository contains research and experiments for AI / ML / CS / LLM topics.
# Setup
This project was developed against Python 3.12.2.
First, create a virtual environment:
$ python3 -m venv ./.venv
Then, install the required packages:
$ ./.venv/bin/pip install -r requirements.txt
macOS Users: You'll need to do a few things first.
* `brew install gfortran openblas`
* `export OPENBLAS="$(brew --prefix openblas)"`## Ollama
Some examples require ollama to be running.
https://ollama.com/
# Usage
The `cache.py` script can be used to download and cache the models and datasets used by the project.
$ ./.venv/bin/python3 cache.py -h
Once everything is cached, you can set some environment flags to ensure everything runs in offline mode.
$ export HF_DATASETS_OFFLINE=1
$ export TRANSFORMERS_OFFLINE=1Each of the scripts has some usage documentation and help text to get you started, but generally work with defaults:
$ ./.venv/bin/python3 coach1.py
# Tips
The tools `htop` and `nvtop` are pretty handy.
$ brew install nvtop htop