Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,15 @@
|
|
1 |
#from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
4 |
#client = InferenceClient("""K00B404/BagOMistral_14X_Coders-ties-7B""")
|
5 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
6 |
import torch
|
7 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
8 |
|
9 |
model_id = 'K00B404/Merged_Beowolx-CodePro_Medusa2-7B-Mistral-I-v0-2'
|
|
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
11 |
|
12 |
model = AutoModelForCausalLM.from_pretrained(model_id)
|
|
|
1 |
#from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
|
4 |
+
|
5 |
+
|
6 |
#client = InferenceClient("""K00B404/BagOMistral_14X_Coders-ties-7B""")
|
7 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
8 |
import torch
|
9 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
10 |
|
11 |
model_id = 'K00B404/Merged_Beowolx-CodePro_Medusa2-7B-Mistral-I-v0-2'
|
12 |
+
gr.load(f"models/{model_id}").launch()
|
13 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
14 |
|
15 |
model = AutoModelForCausalLM.from_pretrained(model_id)
|