Spaces:
Running on Zero
Running on Zero
Commit ·
5801600
1
Parent(s): fbdeb92
fix gpu time estimating
Browse files249 unmodified lines250251252253254255256249 unmodified linesreturn promptdef estimate_duration(user_prompt, max_tokens, temperature, top_k, top_p, rep_penalty, ngram_size, do_sample):return min(max(int(max_tokens) // 20, 15), 60)249 unmodified lines250251252253254255256249 unmodified linesreturn promptdef estimate_duration(user_prompt, max_tokens, temperature, top_k, top_p, rep_penalty, ngram_size, do_sample, show_prompt=False):return min(max(int(max_tokens) // 20, 15), 60)
app.py+1-1