Skip to content

Commit

Permalink
py : add requirements.txt (ggerganov#201)
Browse files Browse the repository at this point in the history
* Add requirements.txt

* Fix README.md files
  • Loading branch information
csy1204 authored Jun 25, 2023
1 parent 2988146 commit 4a7db90
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ make -j4 gpt-2 gpt-j
../examples/gpt-j/download-ggml-model.sh 6B
./bin/gpt-j -m models/gpt-j-6B/ggml-model.bin -p "This is an example"

# Install Python dependencies
python3 -m pip install -r ../requirements.txt

# Run the Cerebras-GPT 111M model
# Download from: https://huggingface.co/cerebras
python3 ../examples/gpt-2/convert-cerebras-to-ggml.py /path/to/Cerebras-GPT-111M/
Expand Down
3 changes: 3 additions & 0 deletions examples/dolly-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ make -j
# get the Dolly-V2 3B model
git clone https://huggingface.co/databricks/dolly-v2-3b

# install Python dependencies
python3 -m pip install -r ../requirements.txt

# convert model to FP16
python3 ../examples/dolly-v2/convert-h5-to-ggml.py ./dolly-v2-3b/ 1

Expand Down
3 changes: 3 additions & 0 deletions examples/gpt-neox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ make -j
# get the StableLM 3B Alpha model
git clone https://huggingface.co/stabilityai/gpt_neox-base-alpha-3b

# install Python dependencies
python3 -m pip install -r ../requirements.txt

# convert model to FP16
python3 ../examples/gpt_neox/convert-h5-to-ggml.py ./stablelm-base-alpha-3b/ 1

Expand Down
3 changes: 3 additions & 0 deletions examples/starcoder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ main: total time = 4580.56 ms
git clone https://github.com/ggerganov/ggml
cd ggml

# Install Python dependencies
python3 -m pip install -r requirements.txt

# Convert HF model to ggml
python examples/starcoder/convert-hf-to-ggml.py bigcode/gpt_bigcode-santacoder

Expand Down
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accelerate==0.19.0
numpy==1.24.3
sentencepiece==0.1.98
torch==2.0.1
torchaudio==2.0.2
torchvision==0.15.2
transformers==4.29.2

0 comments on commit 4a7db90

Please sign in to comment.