fetch model
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import argparse
|
|
3 |
import os
|
4 |
import json
|
5 |
from threading import Thread
|
|
|
6 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
7 |
|
8 |
MAX_MAX_NEW_TOKENS = 4096
|
|
|
3 |
import os
|
4 |
import json
|
5 |
from threading import Thread
|
6 |
+
import torch
|
7 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
8 |
|
9 |
MAX_MAX_NEW_TOKENS = 4096
|