carlex3321 commited on
Commit
b11811b
·
verified ·
1 Parent(s): 9a99286

Update builder.sh

Browse files
Files changed (1) hide show
  1. builder.sh +7 -7
builder.sh CHANGED
@@ -107,14 +107,14 @@ build_apex () {
107
  fi
108
  echo "[build] Compilando Apex -> wheel"
109
  export APEX_CPP_EXT=1 APEX_CUDA_EXT=1 APEX_ALL_CONTRIB_EXT=0
110
- python -m pip wheel -v --no-build-isolation --no-deps "$SRC" -w /app/wheels || true
111
  local W="$(ls -t /app/wheels/apex-*.whl 2>/dev/null | head -n1 || true)"
112
  if [ -n "${W}" ]; then
113
- python -m pip install -v -U --no-deps "${W}" || true
114
  echo "[build] Apex instalado da wheel recém-compilada: ${W}"
115
  else
116
  echo "[build] Nenhuma wheel Apex gerada; instalando do source (pode falhar)"
117
- python -m pip install -v --no-build-isolation "$SRC" || true
118
  fi
119
  }
120
 
@@ -127,14 +127,14 @@ build_q8 () {
127
  git -C "$SRC" checkout "$Q8_COMMIT"
128
  git -C "$SRC" submodule update --init --recursive
129
  echo "[build] Compilando Q8 Kernels -> wheel"
130
- python -m pip wheel -v --no-build-isolation "$SRC" -w /app/wheels || true
131
  local W="$(ls -t /app/wheels/q8_kernels-*.whl 2>/dev/null | head -n1 || true)"
132
  if [ -n "${W}" ]; then
133
- python -m pip install -v -U --no-deps "${W}" || true
134
  echo "[build] Q8 instalado da wheel recém-compilada: ${W}"
135
  else
136
  echo "[build] Nenhuma wheel q8_kernels gerada; instalando do source (pode falhar)"
137
- python -m pip install -v --no-build-isolation "$SRC" || true
138
  fi
139
  }
140
 
@@ -155,7 +155,7 @@ ensure_pkg () {
155
  if [ -n "${HF_OUT:-}" ]; then
156
  WHEEL_PATH="$(printf "%s\n" "${HF_OUT}" | tail -n1)"
157
  echo "[hub] Baixado: ${WHEEL_PATH}"
158
- python -m pip install -v -U --no-build-isolation "${WHEEL_PATH}" || true
159
  if ${CHECK_FN}; then
160
  echo "[flow] ${PKG}: sucesso via Hub (${WHEEL_PATH})"
161
  return 0
 
107
  fi
108
  echo "[build] Compilando Apex -> wheel"
109
  export APEX_CPP_EXT=1 APEX_CUDA_EXT=1 APEX_ALL_CONTRIB_EXT=0
110
+ python -m pip wheel --no-build-isolation --no-deps "$SRC" -w /app/wheels || true
111
  local W="$(ls -t /app/wheels/apex-*.whl 2>/dev/null | head -n1 || true)"
112
  if [ -n "${W}" ]; then
113
+ python -m pip install -U --no-deps "${W}" || true
114
  echo "[build] Apex instalado da wheel recém-compilada: ${W}"
115
  else
116
  echo "[build] Nenhuma wheel Apex gerada; instalando do source (pode falhar)"
117
+ python -m pip install --no-build-isolation "$SRC" || true
118
  fi
119
  }
120
 
 
127
  git -C "$SRC" checkout "$Q8_COMMIT"
128
  git -C "$SRC" submodule update --init --recursive
129
  echo "[build] Compilando Q8 Kernels -> wheel"
130
+ python -m pip wheel --no-build-isolation "$SRC" -w /app/wheels || true
131
  local W="$(ls -t /app/wheels/q8_kernels-*.whl 2>/dev/null | head -n1 || true)"
132
  if [ -n "${W}" ]; then
133
+ python -m pip install -U --no-deps "${W}" || true
134
  echo "[build] Q8 instalado da wheel recém-compilada: ${W}"
135
  else
136
  echo "[build] Nenhuma wheel q8_kernels gerada; instalando do source (pode falhar)"
137
+ python -m pip install --no-build-isolation "$SRC" || true
138
  fi
139
  }
140
 
 
155
  if [ -n "${HF_OUT:-}" ]; then
156
  WHEEL_PATH="$(printf "%s\n" "${HF_OUT}" | tail -n1)"
157
  echo "[hub] Baixado: ${WHEEL_PATH}"
158
+ python -m pip install -U --no-build-isolation "${WHEEL_PATH}" || true
159
  if ${CHECK_FN}; then
160
  echo "[flow] ${PKG}: sucesso via Hub (${WHEEL_PATH})"
161
  return 0