carlex3321 commited on
Commit
d6d86b0
·
verified ·
1 Parent(s): 8c75155

Update builder.sh

Browse files
Files changed (1) hide show
  1. builder.sh +7 -7
builder.sh CHANGED
@@ -125,15 +125,15 @@ build_apex () {
125
 
126
  echo "[build] Compilando Apex -> wheel"
127
  export APEX_CPP_EXT=1 APEX_CUDA_EXT=1 APEX_ALL_CONTRIB_EXT=0
128
- python -m pip wheel -v --no-build-isolation --no-deps "$SRC" -w /app/wheels || true
129
 
130
  local W="$(ls -t /app/wheels/apex-*.whl 2>/dev/null | head -n1 || true)"
131
  if [ -n "${W}" ]; then
132
- python -m pip install -v -U --no-deps "${W}" || true
133
  echo "[build] Apex instalado da wheel: ${W}"
134
  else
135
  echo "[build] Nenhuma wheel Apex gerada; instalando do source"
136
- python -m pip install -v --no-build-isolation "$SRC" || true
137
  fi
138
  }
139
 
@@ -147,15 +147,15 @@ build_q8 () {
147
  git -C "$SRC" submodule update --init --recursive
148
 
149
  echo "[build] Compilando Q8 Kernels -> wheel"
150
- python -m pip wheel -v --no-build-isolation "$SRC" -w /app/wheels || true
151
 
152
  local W="$(ls -t /app/wheels/q8_kernels-*.whl 2>/dev/null | head -n1 || true)"
153
  if [ -n "${W}" ]; then
154
- python -m pip install -v -U --no-deps "${W}" || true
155
  echo "[build] Q8 instalado da wheel: ${W}"
156
  else
157
  echo "[build] Nenhuma wheel q8_kernels gerada; instalando do source"
158
- python -m pip install -v --no-build-isolation "$SRC" || true
159
  fi
160
  }
161
 
@@ -176,7 +176,7 @@ ensure_pkg () {
176
  if [ -n "${HF_OUT:-}" ]; then
177
  WHEEL_PATH="$(printf "%s\n" "${HF_OUT}" | tail -n1)"
178
  echo "[hub] Baixado: ${WHEEL_PATH}"
179
- python -m pip install -v -U --no-build-isolation "${WHEEL_PATH}" || true
180
  if ${CHECK_FN}; then
181
  echo "[flow] ${PKG}: sucesso via Hub (${WHEEL_PATH})"
182
  return 0
 
125
 
126
  echo "[build] Compilando Apex -> wheel"
127
  export APEX_CPP_EXT=1 APEX_CUDA_EXT=1 APEX_ALL_CONTRIB_EXT=0
128
+ python -m pip wheel --no-build-isolation --no-deps "$SRC" -w /app/wheels || true
129
 
130
  local W="$(ls -t /app/wheels/apex-*.whl 2>/dev/null | head -n1 || true)"
131
  if [ -n "${W}" ]; then
132
+ python -m pip install -U --no-deps "${W}" || true
133
  echo "[build] Apex instalado da wheel: ${W}"
134
  else
135
  echo "[build] Nenhuma wheel Apex gerada; instalando do source"
136
+ python -m pip install --no-build-isolation "$SRC" || true
137
  fi
138
  }
139
 
 
147
  git -C "$SRC" submodule update --init --recursive
148
 
149
  echo "[build] Compilando Q8 Kernels -> wheel"
150
+ python -m pip wheel --no-build-isolation "$SRC" -w /app/wheels || true
151
 
152
  local W="$(ls -t /app/wheels/q8_kernels-*.whl 2>/dev/null | head -n1 || true)"
153
  if [ -n "${W}" ]; then
154
+ python -m pip install -U --no-deps "${W}" || true
155
  echo "[build] Q8 instalado da wheel: ${W}"
156
  else
157
  echo "[build] Nenhuma wheel q8_kernels gerada; instalando do source"
158
+ python -m pip install --no-build-isolation "$SRC" || true
159
  fi
160
  }
161
 
 
176
  if [ -n "${HF_OUT:-}" ]; then
177
  WHEEL_PATH="$(printf "%s\n" "${HF_OUT}" | tail -n1)"
178
  echo "[hub] Baixado: ${WHEEL_PATH}"
179
+ python -m pip install -U --no-build-isolation "${WHEEL_PATH}" || true
180
  if ${CHECK_FN}; then
181
  echo "[flow] ${PKG}: sucesso via Hub (${WHEEL_PATH})"
182
  return 0