Skip to content

Commit

Permalink
Merge pull request #6512 from balajialg/a11y_setup
Browse files Browse the repository at this point in the history
Add config to enable ollama based workflow in a11y hub
  • Loading branch information
balajialg authored Nov 26, 2024
2 parents b72b7aa + 7581eba commit 69f9f80
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions deployments/a11y/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,22 @@ jupyterhub:
c.QtPDFExporter.enabled = False
c.QtPNGExporter.enabled = False
c.WebPDFExporter.enabled = False
# proxy ollama
proxy-ollama:
# https://jupyter-server-proxy.readthedocs.io/en/latest/server-process.html#specifying-config-via-traitlets
mountPath: /etc/jupyter/jupyter_server_config.py
stringData: |
c.ServerProxy.servers = {
"ollama": {
"port": 11434
}
}
extraEnv:
# Unset NotebookApp from hub/values. Necessary for recent lab versions.
JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"
OLLAMA_ORIGINS: "*"
OLLAMA_HOST: "0.0.0.0:11434"
OLLAMA_DEBUG: "1"
nodeSelector:
hub.jupyter.org/pool-name: small-courses-pool
storage:
Expand All @@ -83,5 +96,5 @@ jupyterhub:
subPath: _shared
readOnly: true
memory:
guarantee: 3G
limit: 3G
guarantee: 5G
limit: 5G

0 comments on commit 69f9f80

Please sign in to comment.