S-4-G-4-R commited on
Commit
b42b1cc
·
verified ·
1 Parent(s): d7dd595

Update ui/gpu.py

Browse files
Files changed (1) hide show
  1. ui/gpu.py +1 -0
ui/gpu.py CHANGED
@@ -38,6 +38,7 @@ _VECTORIZE_SECONDS = 120
38
 
39
 
40
  @spaces.GPU(duration=_VECTORIZE_SECONDS)
 
41
  def vectorize_on_gpu(pdf_path: str) -> None:
42
  """Build and persist this paper's vectorstore with the embedder on GPU.
43
 
 
38
 
39
 
40
  @spaces.GPU(duration=_VECTORIZE_SECONDS)
41
+ print(f"[GPU FN] pid={os.getpid()}, in ZeroGPU ctx: {os.environ.get('SPACES_ZERO_GPU')}")
42
  def vectorize_on_gpu(pdf_path: str) -> None:
43
  """Build and persist this paper's vectorstore with the embedder on GPU.
44