phi commited on
Commit
d90aef3
1 Parent(s): 99241b8

minor change

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -1,13 +1,9 @@
1
- # A mirror to gradio launch stream
2
  # By Xuan Phi Nguyen at DAMO Academy, Alibaba Group
3
 
 
4
  """
5
- Load FasterLlama with original VLLM codebase,
6
-
7
- require changing config names to LlamaForCausalLM
8
-
9
- tensor_parallel must == 1
10
-
11
  """
12
 
13
 
@@ -75,6 +71,11 @@ HF_MODEL_NAME=DAMO-NLP-SG/seal-13b-chat-a
75
 
76
  # ==============================
77
  print(f'DEBUG mode: {DEBUG}')
 
 
 
 
 
78
 
79
 
80
 
@@ -976,9 +977,12 @@ export CUDA_VISIBLE_DEVICES=0
976
  export MODEL_PATH=seal_13b_a
977
  export MODEL_PATH=${dataroot}/hf_train/pretrain_lm/swpn/merlion13s108Hi8kPretFlCW12k.LMFromHf.a.gc.t5k0.vizhthid.mean_std.TrainTask.NLNL.Multi.Vi.SeaV2Cq13M.SeaV2Cq13M.m4k.b8.lr1e5.linear.wa0k.ms858k.grac1.se1.8g.v4c.zfsdp/step_6000
978
 
979
- export MODEL_PATH=${dataroot}/hf_train/pretrain_lm/swpn/mer13s108Hi16kPretFlCWNLP12k_SFT2.LMFromHf.a.gc.t5k0.vizhthid.mean_std.TrainTask.NLNL.Multi.Vi.Sft2Censor.Sft2Censor.m4k.b8.lr1e5.linear.wa0k.ms1144k.grac1.se1.6g.v4c.zfsdp/step_2000
 
 
980
  export PORT=8799
981
  export BLOCK_ZH=1
 
982
  python app.py
983
 
984
 
 
1
+ # Copyright: DAMO Academy, Alibaba Group
2
  # By Xuan Phi Nguyen at DAMO Academy, Alibaba Group
3
 
4
+ # Description:
5
  """
6
+ VLLM-based demo script to launch Language chat model for South East Asian Languages
 
 
 
 
 
7
  """
8
 
9
 
 
71
 
72
  # ==============================
73
  print(f'DEBUG mode: {DEBUG}')
74
+ print(f'Torch version: {torch.__version__}')
75
+ try:
76
+ print(f'Torch CUDA version: {torch.version.cuda}')
77
+ except Exception as e:
78
+ print(f'Failed to print cuda version: {e}')
79
 
80
 
81
 
 
977
  export MODEL_PATH=seal_13b_a
978
  export MODEL_PATH=${dataroot}/hf_train/pretrain_lm/swpn/merlion13s108Hi8kPretFlCW12k.LMFromHf.a.gc.t5k0.vizhthid.mean_std.TrainTask.NLNL.Multi.Vi.SeaV2Cq13M.SeaV2Cq13M.m4k.b8.lr1e5.linear.wa0k.ms858k.grac1.se1.8g.v4c.zfsdp/step_6000
979
 
980
+ export MODEL_PATH=${dataroot}/hf_train/pretrain_lm/swpn/mer13s108Hi16kPretFlCWNLP12k_SFT2.LMFromHf.a.gc.t5k0.vizhthid.mean_std.TrainTask.NLNL.Multi.Vi.Sft2Censor.Sft2Censor.m4k.b8.lr1e5.linear.wa0k.ms1144k.grac1.se1.6g.v4c.zfsdp/step_4000
981
+ # 70-30 model
982
+ export MODEL_PATH=${dataroot}/hf_train/pretrain_lm/swpn/mer13s108Hi16kPretFlCWNLP12k_SFT2.LMFromHf.a.gc.t5k0.vizhthid.mean_std.TrainTask.NLNL.Multi.BgSft2aCensor0a.BgSft2Cens.BgSft2Cens.m4k.b2.lr1e5.linear.wa0k.ms4577k.grac1.se1.6g.v4c73.zfsdp/step_500
983
  export PORT=8799
984
  export BLOCK_ZH=1
985
+ export DEBUG=0
986
  python app.py
987
 
988