Automated translation of german into "Leichte Sprache"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.0 KiB

  1. ```
  2. _ _ _
  3. | |__ __ _ ___ __ _| |__ _ _ _ _| | ____ _
  4. | '_ \ / _` / __|/ _` | '_ \| | | | | | | |/ / _` |
  5. | |_) | (_| \__ \ (_| | |_) | |_| | |_| | < (_| |
  6. |_.__/ \__,_|___/\__,_|_.__/ \__,_|\__,_|_|\_\__,_|
  7. ```
  8. This whole code is licensed under the License of Redistribution 1.0.
  9. You can find a copy of this licence on this instance, under
  10. https://code.basabuuka.org/alpcentaur/license-of-redistribution
  11. The whole prototype is nested in a tensorflow/tensorflow:2.2.0-gpu docker
  12. container.
  13. Install graphic card drivers according to your hardware and your OS.
  14. To make the tensorflow docker container work.
  15. Also get Ollama running in a docker container, sharing the same network protoRustNet.
  16. That it is reachable from the ollama-cli-server under http://ollama:11434/api/generate.
  17. I run my ollama container seperately together with open web ui.
  18. Like that, I can administrate the models over the web ui, and then use them by changing the code
  19. in the fastapi_server.py file of the ollama-cli-server container.
  20. After having set up the ollama container and the gpu docker drivers, just start the whole project in the
  21. ```
  22. compose
  23. ```
  24. directory with
  25. ```
  26. docker compose up -d
  27. ```
  28. The deb-rust-interface will be running on port
  29. For instructions how to setup a webserver as reverse proxy, you can contact basabuuka.
  30. My nginx configuration for the basabuuka prototype is the following:
  31. ```
  32. upstream protointerface {
  33. server 127.0.0.1:1030;
  34. }
  35. server {
  36. server_name example.org;
  37. # access logs consume resources
  38. access_log /var/log/nginx/example.org.access.log;
  39. location / {
  40. proxy_pass http://protointerface;
  41. }
  42. # set high timeouts for using 14b model on 200 euro gpu
  43. proxy_connect_timeout 300;
  44. proxy_send_timeout 300;
  45. proxy_read_timeout 300;
  46. send_timeout 300;
  47. keepalive_timeout 300;
  48. }
  49. ```