Spaces:
Build error
Build error
Joseph commited on
Commit ·
a5ef5d4
1
Parent(s): e543d33
Update quart_app.py
Browse files62 unmodified lines6364656667686970717262 unmodified linesI'm using here 7b model just for example. Also here's only CPU power.<br>But you can use GPU power as well!<br><br><h1>How to GPU?</h1>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>Powered by <a href="https://github.com/abetlen/llama-cpp-python">llama-cpp-python</a>, <a href="https://quart.palletsprojects.com/">Quart</a> and <a href="https://www.uvicorn.org/">Uvicorn</a>.<br><br><h1>How to test it on own machine?</h1>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>Or you can once follow steps in Dockerfile and try it on your machine, not in Docker.<br><br>''' + f"Memory used: {psutil.virtual_memory()[2]}<br>" + '''<script>document.write("<b>URL of space:</b> "+window.location.href);</script>'''62 unmodified lines6364656667686970717262 unmodified linesI'm using here 7b model just for example. Also here's only CPU power.<br>But you can use GPU power as well!<br><br><h1>How to GPU?</h1>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><h1>How to test it on own machine?</h1>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>Or you can once follow steps in Dockerfile and try it on your machine, not in Docker.<br><br>''' + f"Memory used: {psutil.virtual_memory()[2]}<br>" + '''<script>document.write("<b>URL of space:</b> "+window.location.href);</script>''' + '''Powered by <a href="https://github.com/abetlen/llama-cpp-python">llama-cpp-python</a>, <a href="https://quart.palletsprojects.com/">Quart</a> and <a href="https://www.uvicorn.org/">Uvicorn</a>.<br><br>'''
quart_app.py+3-3