makeproject commited on
Commit
d798487
·
verified ·
1 Parent(s): 8f1154e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -6,9 +6,10 @@ print("正在从云端下载微调模型,请稍候...")
6
  # 自动从 Hugging Face 仓库下载微调好的模型(此处以 Arduino 0.5B 模型为例)
7
  try:
8
  # 注意:如果运行时报错,请确认原作者或您克隆的仓库中 GGUF 的确切文件名
 
9
  model_path = hf_hub_download(
10
- repo_id="eoinedge/arduino-qwen0.5-lora",
11
- filename="arduino-qwen0.5-lora.Q4_K_M.gguf"
12
  )
13
  llm = Llama(model_path=model_path, n_ctx=2048)
14
  print("模型加载成功!")
 
6
  # 自动从 Hugging Face 仓库下载微调好的模型(此处以 Arduino 0.5B 模型为例)
7
  try:
8
  # 注意:如果运行时报错,请确认原作者或您克隆的仓库中 GGUF 的确切文件名
9
+ # ✏️ 把那两行替换成下面这样:
10
  model_path = hf_hub_download(
11
+ repo_id="eoinedge/edgeai-docs-qwen2.5-coder-0.5b-lora",
12
+ filename="edgeai-docs-qwen2.5-coder-0.5b-lora.Q4_K_M.gguf"
13
  )
14
  llm = Llama(model_path=model_path, n_ctx=2048)
15
  print("模型加载成功!")