Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,14 +24,15 @@ token = os.environ["HF_TOKEN"]
|
|
24 |
# apple/OpenELM-270M ๋ชจ๋ธ๊ณผ ํ ํฌ๋์ด์ ๋ก๋
|
25 |
# ํ ํฌ๋์ด์ ๊ฐ ์ค๋ฅ๋๋ ๋ฌธ์ ๊ฐ ์์ด์ NousResearch/Llama-2-7b-hf๋ฅผ ์
|
26 |
# ํ๊ตญ์ด ๋ชจ๋ธ ํ ํฌ๋์ด์ ๋ก ๋ฐ๊ฟ๋ด beomi/llama-2-ko-7b
|
27 |
-
# apple/OpenELM-1.1B ํ ํฌ๋์ด์ ๋ง ํฌ๊ฒ
|
|
|
28 |
model = AutoModelForCausalLM.from_pretrained(
|
29 |
"apple/OpenELM-270M",
|
30 |
token=token,
|
31 |
trust_remote_code=True,
|
32 |
)
|
33 |
tok = AutoTokenizer.from_pretrained(
|
34 |
-
"
|
35 |
token=token,
|
36 |
trust_remote_code=True,
|
37 |
tokenizer_class=LlamaTokenizer,
|
|
|
24 |
# apple/OpenELM-270M ๋ชจ๋ธ๊ณผ ํ ํฌ๋์ด์ ๋ก๋
|
25 |
# ํ ํฌ๋์ด์ ๊ฐ ์ค๋ฅ๋๋ ๋ฌธ์ ๊ฐ ์์ด์ NousResearch/Llama-2-7b-hf๋ฅผ ์
|
26 |
# ํ๊ตญ์ด ๋ชจ๋ธ ํ ํฌ๋์ด์ ๋ก ๋ฐ๊ฟ๋ด beomi/llama-2-ko-7b
|
27 |
+
# apple/OpenELM-1.1B ํ ํฌ๋์ด์ ๋ง ํฌ๊ฒ ํด๋ด <- ์๋จ
|
28 |
+
#
|
29 |
model = AutoModelForCausalLM.from_pretrained(
|
30 |
"apple/OpenELM-270M",
|
31 |
token=token,
|
32 |
trust_remote_code=True,
|
33 |
)
|
34 |
tok = AutoTokenizer.from_pretrained(
|
35 |
+
"NousResearch/Llama-2-7b-hf",
|
36 |
token=token,
|
37 |
trust_remote_code=True,
|
38 |
tokenizer_class=LlamaTokenizer,
|