Fix misc mistakes (#13)

* Fix misc

* Fix docker-compose
add-more-languages
Meng Zhang 2023-03-25 21:37:38 +08:00 committed by GitHub
parent ea9f3f8f94
commit e6bf16711f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,5 @@
deployment deployment
**/.git **/.git
**/node_modules
**/__pycache__ **/__pycache__

View File

@ -33,4 +33,4 @@ services:
test: ["CMD", "curl", "-f", "http://localhost:8002/metrics"] test: ["CMD", "curl", "-f", "http://localhost:8002/metrics"]
interval: 2s interval: 2s
timeout: 2s timeout: 2s
start_period: 2s start_period: 120s

View File

@ -4,7 +4,7 @@ services:
init: init:
image: tabbyml/tabby image: tabbyml/tabby
container_name: tabby-init container_name: tabby-init
command: python -m tabby.tools.model_preload --repo_id TabbyML/NeoX-70M --backend python command: python -m tabby.tools.model_preload --repo_id TabbyML/NeoX-70M
volumes: volumes:
- ./data/hf_cache:/root/.cache/huggingface - ./data/hf_cache:/root/.cache/huggingface

View File

@ -13,6 +13,8 @@ def make_badge_markdown(x: ServiceInfo):
return f"![{x.label}]({x.badge_url})" return f"![{x.label}]({x.badge_url})"
st.set_page_config(page_title="Tabby Admin")
st.markdown("## Tabby") st.markdown("## Tabby")
st.markdown(" ".join(map(make_badge_markdown, SERVICES))) st.markdown(" ".join(map(make_badge_markdown, SERVICES)))

View File

@ -9,7 +9,6 @@ class Arguments:
repo_id: str = field( repo_id: str = field(
metadata={"help": "Huggingface model repository id, e.g TabbyML/NeoX-160M"} metadata={"help": "Huggingface model repository id, e.g TabbyML/NeoX-160M"}
) )
backend: str = "python"
prefer_local_files: bool = True prefer_local_files: bool = True