mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
80a925d77d
Bumps [transformers](https://github.com/huggingface/transformers) from 4.34.0 to 4.36.0. - [Release notes](https://github.com/huggingface/transformers/releases) - [Commits](https://github.com/huggingface/transformers/compare/v4.34.0...v4.36.0) --- updated-dependencies: - dependency-name: transformers dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.. | ||
Models | ||
app.py | ||
Dockerfile.tpl | ||
Readme.md | ||
requirements.txt | ||
tsconfig.json |
Llama
Prepare
- Download models from meta
- Once the model is downloaded, place them in the
Llama/Models
folder. Please make sure you also place tokenizer.model and tokenizer_checklist.chk in the same folder. - Edit
Dockerfile
to include the model name in theMODEL_NAME
variable. - Docker build
docker build -t llama . -f ./Llama/Dockerfile
Run
For Linux
docker run --gpus all -p 8547:8547 -it -v ./Llama/Models:/app/Models llama
For MacOS
docker run -p 8547:8547 -it -v ./Llama/Models:/app/Models llama
Run without a docker conatiner
uvicorn app:app --host 0.0.0.0 --port 8547