pseudotensor commited on
Commit
14b46ba
1 Parent(s): afada69

Update with h2oGPT hash 1f145fdbb1769693736d253d0f21857158e142a6

Browse files
Files changed (1) hide show
  1. generate.py +1 -1
generate.py CHANGED
@@ -833,7 +833,7 @@ def evaluate(
833
  # else hit bitsandbytes lack of thread safety:
834
  # https://github.com/h2oai/h2ogpt/issues/104
835
  # but only makes sense if concurrency_count == 1
836
- context_class = NullContext if concurrency_count > 1 else filelock.FileLock
837
  print('Pre-Generate: %s' % str(datetime.now()), flush=True)
838
  decoded_output = None
839
  with context_class("generate.lock"):
 
833
  # else hit bitsandbytes lack of thread safety:
834
  # https://github.com/h2oai/h2ogpt/issues/104
835
  # but only makes sense if concurrency_count == 1
836
+ context_class = NullContext #if concurrency_count > 1 else filelock.FileLock
837
  print('Pre-Generate: %s' % str(datetime.now()), flush=True)
838
  decoded_output = None
839
  with context_class("generate.lock"):