[PR #38] Docker and和 WebUI #201

Open
opened 2026-10-26 21:14:02 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/Janus/pull/38
Author: @juliancoy
Created: 1/27/2025
Status: 🔄 Open

Base: main ← Head: main


📝 Commits (6)

  • 74c9d4e adds Dockerfile
  • e471403 removes trailing slash from endpoints, which causes HTTPS redirect issues
  • bfa6c0e Adds MODEL_NAME as an Environment variable for Docker context. Defaults to the same 1.3B model
  • 1f83d27 adds a simple WebUI for the evaluation of models
  • 4875ba0 css updates and adds docker debug script
  • ec1a047 Merge branch 'deepseek-ai:main' into main

📊 Changes

11 files changed (+541 additions, -4 deletions)

View changed files

📝 .gitignore (+2 -1)
➕ Dockerfile (+16 -0)
📝 demo/fastapi_app.py (+10 -3)
➕ demo/webui/APIChat.js (+164 -0)
➕ demo/webui/child.jpg (+0 -0)
➕ demo/webui/favicon.ico (+0 -0)
➕ demo/webui/index.css (+302 -0)
➕ demo/webui/index.html (+35 -0)
➕ demo/webui/start_docker_environment.sh (+12 -0)
➕ demo/webui/system.png (+0 -0)
➕ demo/webui/user.png (+0 -0)

📄 Description

This Docker implementation makes it easy for people to run the server and a helpful web UI with a single command:
这个 Docker 实现让人们可以用一个命令轻松运行服务器和一个有用的 Web UI:

docker run -it --rm \
  -p 8000:8000 \
  -d \
  -v huggingface:/root/.cache/huggingface \
  -w /app \
  --gpus all \
  --name janus \
  -e MODEL_NAME=deepseek-ai/Janus-1.3B \
  julianfl0w/janus:latest

You can make sure its running by navigating to
打开浏览器并访问
http://localhost:8000/webui

or,
或者,
docker logs janus

NOTE: You will need NVIDIA Container Runtime or equivalent
注意:你需要 NVIDIA Container Runtime 或同等版本


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/Janus/pull/38 **Author:** [@juliancoy](https://github.com/juliancoy) **Created:** 1/27/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`74c9d4e`](https://github.com/deepseek-ai/Janus/commit/74c9d4ea440807be9ebc2d4ee1dbb64f986c7c82) adds Dockerfile - [`e471403`](https://github.com/deepseek-ai/Janus/commit/e471403e448b5b73d7f74e44caf08bf04e3e5403) removes trailing slash from endpoints, which causes HTTPS redirect issues - [`bfa6c0e`](https://github.com/deepseek-ai/Janus/commit/bfa6c0e1c1aac7485b938effde9a85112a67ed80) Adds MODEL_NAME as an Environment variable for Docker context. Defaults to the same 1.3B model - [`1f83d27`](https://github.com/deepseek-ai/Janus/commit/1f83d279a19c50fe42b68211206ec80be36acecf) adds a simple WebUI for the evaluation of models - [`4875ba0`](https://github.com/deepseek-ai/Janus/commit/4875ba0069546e7b7aeabd83f89ed4a0258c19a3) css updates and adds docker debug script - [`ec1a047`](https://github.com/deepseek-ai/Janus/commit/ec1a0477e43b519a3599a95f54d75c8c4b61254d) Merge branch 'deepseek-ai:main' into main ### 📊 Changes **11 files changed** (+541 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -1) ➕ `Dockerfile` (+16 -0) 📝 `demo/fastapi_app.py` (+10 -3) ➕ `demo/webui/APIChat.js` (+164 -0) ➕ `demo/webui/child.jpg` (+0 -0) ➕ `demo/webui/favicon.ico` (+0 -0) ➕ `demo/webui/index.css` (+302 -0) ➕ `demo/webui/index.html` (+35 -0) ➕ `demo/webui/start_docker_environment.sh` (+12 -0) ➕ `demo/webui/system.png` (+0 -0) ➕ `demo/webui/user.png` (+0 -0) </details> ### 📄 Description This Docker implementation makes it easy for people to run the server and a helpful web UI with a single command: 这个 Docker 实现让人们可以用一个命令轻松运行服务器和一个有用的 Web UI: ```bash docker run -it --rm \ -p 8000:8000 \ -d \ -v huggingface:/root/.cache/huggingface \ -w /app \ --gpus all \ --name janus \ -e MODEL_NAME=deepseek-ai/Janus-1.3B \ julianfl0w/janus:latest ``` You can make sure its running by navigating to 打开浏览器并访问 http://localhost:8000/webui or, 或者, `docker logs janus` NOTE: You will need NVIDIA Container Runtime or equivalent 注意:你需要 NVIDIA Container Runtime 或同等版本 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/Janus#201
No description provided.