雷娃 commited on
Commit
1d5c7e3
·
1 Parent(s): 0c9602f

add install.sh

Browse files
Files changed (3) hide show
  1. app.py +2 -1
  2. git-pre-push-hook-warn.log +14 -0
  3. install.sh +5 -0
app.py CHANGED
@@ -13,13 +13,14 @@ def install_vllm_from_patch():
13
  return False
14
 
15
  try:
 
16
  result = subprocess.run(
17
  ["bash", script_path],
18
  check=True,
19
  stdout=subprocess.PIPE,
20
  stderr=subprocess.PIPE,
21
  text = True,
22
- timeout = 500
23
  )
24
  print(f"result: {result}")
25
  return True
 
13
  return False
14
 
15
  try:
16
+ prinf(f"begin run install.sh")
17
  result = subprocess.run(
18
  ["bash", script_path],
19
  check=True,
20
  stdout=subprocess.PIPE,
21
  stderr=subprocess.PIPE,
22
  text = True,
23
+ timeout = 300
24
  )
25
  print(f"result: {result}")
26
  return True
git-pre-push-hook-warn.log ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 风险内容位置:
2
+ CommitId: b027fb05358c276cce09efd52b34d5d66020f1c3
3
+ 文件名:install.sh
4
+ 文件行:1~6
5
+ 风险内容:
6
+ #!/bin/bash
7
+
8
+ git clone -b v0.10.0 https://github.com/vllm-project/vllm.git
9
+ cd vllm
10
+ git apply Ling-V2/inference/vllm/bailing_moe_v2.patch
11
+ pip install -e .
12
+ 风险细节:
13
+ 敏感类型:URL地址(url)
14
+ 敏感细节:{hitWord=https://github.com/vllm-project/vllm.git}
install.sh CHANGED
@@ -1,6 +1,11 @@
1
  #!/bin/bash
2
 
 
3
  git clone -b v0.10.0 https://github.com/vllm-project/vllm.git
4
  cd vllm
 
 
5
  git apply Ling-V2/inference/vllm/bailing_moe_v2.patch
 
 
6
  pip install -e .
 
1
  #!/bin/bash
2
 
3
+ echo "begin clone"
4
  git clone -b v0.10.0 https://github.com/vllm-project/vllm.git
5
  cd vllm
6
+
7
+ echo "begin apply"
8
  git apply Ling-V2/inference/vllm/bailing_moe_v2.patch
9
+
10
+ echo "begin install"
11
  pip install -e .