myhloli commited on
Commit
3272eb9
·
1 Parent(s): 8d54f9c

Update .gitignore and README; remove thread settings from space_runtime

Browse files
Files changed (3) hide show
  1. .gitignore +1 -0
  2. README.md +3 -2
  3. mineru_space/space_runtime.py +0 -2
.gitignore CHANGED
@@ -6,3 +6,4 @@ tmp/
6
  .ruff_cache/
7
  .DS_Store
8
  .zcode/
 
 
6
  .ruff_cache/
7
  .DS_Store
8
  .zcode/
9
+ .idea/
README.md CHANGED
@@ -38,8 +38,9 @@ runtime manifests are retained for rollback.
38
 
39
  The root `requirements.txt` installs launcher dependencies. The application
40
  pins are in `mineru_space/runtime-requirements.txt`. Only CPU `onnxruntime` is
41
- installed; table inference is fixed to CPU with default intra/inter-op threads
42
- of 4/1 (`MINERU_INTRA_OP_NUM_THREADS` / `MINERU_INTER_OP_NUM_THREADS`). Torch
 
43
  models still use CUDA and preload through ZeroGPU's emulation at startup.
44
  PDFium and ONNX sessions are not initialized in that parent process.
45
 
 
38
 
39
  The root `requirements.txt` installs launcher dependencies. The application
40
  pins are in `mineru_space/runtime-requirements.txt`. Only CPU `onnxruntime` is
41
+ installed; table inference is fixed to CPU and inherits MinerU's default 4/1
42
+ intra/inter-op threads. The Space does not set `MINERU_INTRA_OP_NUM_THREADS` or
43
+ `MINERU_INTER_OP_NUM_THREADS`; explicit deployment overrides still work. Torch
44
  models still use CUDA and preload through ZeroGPU's emulation at startup.
45
  PDFium and ONNX sessions are not initialized in that parent process.
46
 
mineru_space/space_runtime.py CHANGED
@@ -46,8 +46,6 @@ def configure_environment() -> None:
46
  os.environ["GRADIO_SSR_MODE"] = "False"
47
  for name, value in {
48
  "MINERU_MODEL_SOURCE": "huggingface",
49
- "MINERU_INTRA_OP_NUM_THREADS": "4",
50
- "MINERU_INTER_OP_NUM_THREADS": "1",
51
  "MINERU_PROFILE_STAGES": "1",
52
  "MINERU_ZEROGPU_DURATION": "60",
53
  }.items():
 
46
  os.environ["GRADIO_SSR_MODE"] = "False"
47
  for name, value in {
48
  "MINERU_MODEL_SOURCE": "huggingface",
 
 
49
  "MINERU_PROFILE_STAGES": "1",
50
  "MINERU_ZEROGPU_DURATION": "60",
51
  }.items():