Skip to content

Commit

Permalink
webdemo openxlab
Browse files Browse the repository at this point in the history
  • Loading branch information
006861 committed Jul 15, 2024
1 parent e8b2e69 commit 7592104
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web_internlm2_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Using `python path/to/web_demo.py` may cause unknown problems.
"""
# isort: skip_file
import copy
import copy, os
import warnings
from dataclasses import asdict, dataclass
from typing import Callable, List, Optional
Expand All @@ -31,10 +31,15 @@

logger = logging.get_logger(__name__)

# local
model_path = '/root/EmoLLM/xtuner_config/hf4'
# # local
# model_path = '/root/EmoLLM/xtuner_config/hf_safe'

# Online downloading will be added later

model_path = './EmoLLM_V3.0'
os.system(f'git clone https://code.openxlab.org.cn/chg0901/EmoLLM_V3.0.git {model_path}')
os.system(f'cd {model_path} && git lfs pull')

@dataclass
class GenerationConfig:
# this config is used for chat to provide more diversity
Expand Down

0 comments on commit 7592104

Please sign in to comment.