Spaces:
Running on Zero
Running on Zero
Use a 30-second ZeroGPU reservation for interactive generation
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ BIGRAM = BigramScorer.load(scorer_path("bigram_expanded.pt"), tokenizer=TOKENIZE
|
|
| 43 |
TRIGRAM = TrigramScorer.load(scorer_path("trigram_expanded.pt"), bigram=BIGRAM)
|
| 44 |
|
| 45 |
|
| 46 |
-
@spaces.GPU(size=
|
| 47 |
def generate(question, system_prompt, max_new_tokens, steps, block_length, temperature,
|
| 48 |
top_k, color_mode, method, bigram_weight, threshold, editing_threshold,
|
| 49 |
max_post_steps, early_stopping, max_steps_per_block):
|
|
|
|
| 43 |
TRIGRAM = TrigramScorer.load(scorer_path("trigram_expanded.pt"), bigram=BIGRAM)
|
| 44 |
|
| 45 |
|
| 46 |
+
@spaces.GPU(size='large', duration=30)
|
| 47 |
def generate(question, system_prompt, max_new_tokens, steps, block_length, temperature,
|
| 48 |
top_k, color_mode, method, bigram_weight, threshold, editing_threshold,
|
| 49 |
max_post_steps, early_stopping, max_steps_per_block):
|