Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #123 from casperdcl/bump-ver
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Oct 24, 2023
2 parents 2a42e39 + cbcd45a commit 0448c7f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cht-llama-cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ pip install virtualenv
## Run the compiled file

```bash
./dist/cht-llama-cpp-mistral-1-aarch64-apple-darwin --model_path ./ml/models/mistral-7b-instruct-v0.1.Q5_0.gguf
./dist/cht-llama-cpp-mistral-1-aarch64-apple-darwin --model-path ./ml/models/mistral-7b-instruct-v0.1.Q5_0.gguf
```
2 changes: 1 addition & 1 deletion cht-llama-cpp/build-aarch64-apple-darwin.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
export VERSION=1.0.0
export VERSION=1.1.0

virtualenv venv -p=${1:-3.11}
source ./venv/bin/activate
Expand Down
2 changes: 1 addition & 1 deletion cht-llama-cpp/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
export VERSION=1.0.0
export VERSION=1.1.0
source "$(dirname "${BASH_SOURCE[0]}")/../utils.sh"

build_cpu ghcr.io/premai-io/chat-mistral-7b-instruct-q5 mistral-7b-instruct-v0.1.Q5_0 --build-arg="MODEL_ID=mistral-7b-instruct-v0.1.Q5_0" --build-arg="MODEL_DOWNLOAD_URL=https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/mistral-7b-instruct-v0.1.Q5_0.gguf" ${@:1}
Expand Down
2 changes: 1 addition & 1 deletion cht-llama-cpp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
MODEL_PATH = f"./ml/models/{os.getenv('MODEL_ID', 'mistral-7b-instruct-v0.1.Q5_0')}.gguf"
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--model_path", help="Path to GGUF", default=MODEL_PATH)
parser.add_argument("--model-path", help="Path to GGUF", default=MODEL_PATH)
parser.add_argument("--port", help="Port to run model server on", type=int, default=8000)
args = parser.parse_args()
MODEL_PATH = args.model_path
Expand Down

0 comments on commit 0448c7f

Please sign in to comment.