Spaces:
Running
Running
Commit
•
79c6bfe
1
Parent(s):
67288d4
Update gradio_app.py
Browse files- gradio_app.py +4 -4
gradio_app.py
CHANGED
@@ -25,11 +25,11 @@ translator_tokenizer.src_lang = "en"
|
|
25 |
title = "llama.cpp API"
|
26 |
desc = '''<h1>Hello, world!</h1>
|
27 |
This is showcase how to make own server with Llama2 model.<br>
|
28 |
-
I'm using here
|
29 |
-
But you can use GPU power as well!<br>
|
30 |
<h1>How to GPU?</h1>
|
31 |
-
Change <code>`CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS`</code> in Dockerfile on <code>`CMAKE_ARGS="-DLLAMA_CUBLAS=on"`</code>. Also you can try <code>`DLLAMA_CLBLAST`</code
|
32 |
-
Powered by <a href="https://github.com/abetlen/llama-cpp-python">llama-cpp-python</a
|
33 |
<h1>How to test it on own machine?</h1>
|
34 |
You can install Docker, build image and run it. I made <code>`run-docker.sh`</code> for ya. To stop container run <code>`docker ps`</code>, find name of container and run <code>`docker stop _dockerContainerName_`</code><br>
|
35 |
Or you can once follow steps in Dockerfile and try it on your machine, not in Docker.<br>
|
|
|
25 |
title = "llama.cpp API"
|
26 |
desc = '''<h1>Hello, world!</h1>
|
27 |
This is showcase how to make own server with Llama2 model.<br>
|
28 |
+
I'm using here 13b model just for example. Also here's only CPU power.<br>
|
29 |
+
But you can use GPU power as well!<br><br>
|
30 |
<h1>How to GPU?</h1>
|
31 |
+
Change <code>`CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS`</code> in Dockerfile on <code>`CMAKE_ARGS="-DLLAMA_CUBLAS=on"`</code>. Also you can try <code>`DLLAMA_CLBLAST`</code> or <code>`DLLAMA_METAL`</code>.<br><br>
|
32 |
+
Powered by <a href="https://github.com/abetlen/llama-cpp-python">llama-cpp-python</a> and <a href="https://www.gradio.app/">Gradio</a>.<br><br>
|
33 |
<h1>How to test it on own machine?</h1>
|
34 |
You can install Docker, build image and run it. I made <code>`run-docker.sh`</code> for ya. To stop container run <code>`docker ps`</code>, find name of container and run <code>`docker stop _dockerContainerName_`</code><br>
|
35 |
Or you can once follow steps in Dockerfile and try it on your machine, not in Docker.<br>
|