".github/git@developer.sourcefind.cn:change/sglang.git" did not exist on "fda0cb2a304392d88999cfdfad3b1df38407fc47"
Commit 0c689187 authored by rusty1s's avatar rusty1s
Browse files

build everything

parent 39ef6f1b
language: shell
os:
# - linux
# - osx
- linux
- osx
- windows
env:
global:
- CUDA_HOME=/usr/local/cuda
jobs:
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cpu
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu101
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cpu
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cpu
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu101
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cpu
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu92
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu100
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu100
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu101
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cpu
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu92
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu100
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu101
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cpu
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu92
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu100
# - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu101
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cpu
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu92
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu100
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu101
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cpu
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu92
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu100
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu101
jobs:
exclude: # Exclude all macOS CUDA jobs and Windows CUDA 10.0 jobs.
exclude: # Exclude *all* macOS CUDA jobs and Windows CUDA 9.2/10.0 jobs.
- os: osx
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
- os: osx
......@@ -52,12 +52,20 @@ jobs:
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu100
- os: osx
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu101
- os: windows
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
- os: windows
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
- os: windows
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu92
- os: windows
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu100
- os: windows
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu92
- os: windows
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu100
- os: windows
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu92
- os: windows
env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5 IDX=cu100
......@@ -66,7 +74,7 @@ install:
- source script/conda.sh
- conda create --yes -n test python=${PYTHON_VERSION}
- source activate test
- if [ ${TRAVIS_OS_NAME} = "windows" ] || [ $IDX != "cu92" ]; then conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch -c defaults -c numba/label/dev --yes; else conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes; fi
- conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
- pip install flake8 codecov
- source script/cuda.sh
- python setup.py install
......
......@@ -14,6 +14,6 @@ for wheel in wheels:
continue
names = name.split('-')
name = '-'.join(names[:-4] + [idx] + names[-4:])
name = '-'.join(names[:-4] + [names[-4] + '%2B' + idx] + names[-2:])
new_wheel = osp.join(*wheel.split(osp.sep)[:-1], name)
os.rename(wheel, new_wheel)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment