Spaces:
Runtime error
Runtime error
Commit
·
c1df3e9
1
Parent(s):
52ba34d
Update app.py
Browse files
app.py
CHANGED
@@ -28,14 +28,13 @@ all_stopwords.extend(extra_stopwords)
|
|
28 |
|
29 |
########### GET CLAIMED TRAINED MODEL ###########
|
30 |
auth_token = os.environ.get("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")
|
31 |
-
model_path = os.environ.get("EmicoBinsfinder/CapybaraProper")
|
32 |
-
tokenizer = LlamaTokenizer.from_pretrained("EmicoBinsfinder/CapybaraProper", use_auth_token=auth_token)
|
33 |
|
34 |
model = LlamaForCausalLM.from_pretrained(
|
35 |
"EmicoBinsfinder/CapybaraProper", use_auth_token=auth_token,
|
36 |
load_in_8bit=True,
|
37 |
device_map="auto") #low_cpu_mem_usage=True)
|
38 |
-
|
39 |
########## DEFINING FUNCTIONS ###################
|
40 |
|
41 |
def mean_pooling(model_output, attention_mask):
|
|
|
28 |
|
29 |
########### GET CLAIMED TRAINED MODEL ###########
|
30 |
auth_token = os.environ.get("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")
|
31 |
+
#model_path = os.environ.get("EmicoBinsfinder/CapybaraProper")
|
|
|
32 |
|
33 |
model = LlamaForCausalLM.from_pretrained(
|
34 |
"EmicoBinsfinder/CapybaraProper", use_auth_token=auth_token,
|
35 |
load_in_8bit=True,
|
36 |
device_map="auto") #low_cpu_mem_usage=True)
|
37 |
+
tokenizer = LlamaTokenizer.from_pretrained("EmicoBinsfinder/CapybaraProper", use_auth_token=auth_token)
|
38 |
########## DEFINING FUNCTIONS ###################
|
39 |
|
40 |
def mean_pooling(model_output, attention_mask):
|