Spaces:
Build error
Build error
Commit
·
56aa16d
1
Parent(s):
71fb85e
Add application file
Browse files
app.py
CHANGED
|
@@ -6,8 +6,8 @@ from threading import Thread
|
|
| 6 |
#tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-Chat-3B-v1")
|
| 7 |
#model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Chat-3B-v1", torch_dtype=torch.float16)
|
| 8 |
|
| 9 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 10 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 11 |
|
| 12 |
class StopOnTokens(StoppingCriteria):
|
| 13 |
def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
|
|
|
|
| 6 |
#tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-Chat-3B-v1")
|
| 7 |
#model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Chat-3B-v1", torch_dtype=torch.float16)
|
| 8 |
|
| 9 |
+
tokenizer = AutoTokenizer.from_pretrained("aaditya/OpenBioLLM-Llama3-8B-GGUF")
|
| 10 |
+
model = AutoModelForCausalLM.from_pretrained("aaditya/openbiollm-llama3-8b.Q5_K_M", torch_dtype=torch.float16)
|
| 11 |
|
| 12 |
class StopOnTokens(StoppingCriteria):
|
| 13 |
def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
|