Skip to content

Add gptq quantization model support - #141

Merged
merrymercy merged 17 commits into
sgl-project:mainfrom
Arcmoon-Hu:main
Feb 6, 2024
Merged

merrymercy merged 17 commits into
sgl-project:mainfrom
Arcmoon-Hu:main

Conversation

@Arcmoon-Hu

Copy link
Copy Markdown
Contributor

I just test on Qwen-1.8B-Chat-Int4 model on my old gpu.

@merrymercy
merrymercy force-pushed the main branch 2 times, most recently from 1f41598 to 8ff870b Compare February 5, 2024 11:29
@merrymercy
merrymercy merged commit 3ae78a0 into sgl-project:main Feb 6, 2024
@merrymercy

Copy link
Copy Markdown
Collaborator

@Arcmoon-Hu thanks!

timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
NorthmanPKU pushed a commit to NorthmanPKU/sglang that referenced this pull request May 16, 2025
…oject#141)

* set default strides for outputs

* checkpoint

* Support input/output stride specification in search

* undo changes in cmake files

* fix json key error

* refactor search code a bit & initialize symbolic verification

* checkpoint

* debug

* fix

* fix

* format

* remove debug code
NorthmanPKU added a commit to NorthmanPKU/sglang that referenced this pull request May 16, 2025
* initial impl

* format

* fix bugs and add a docu

* add more operators

* a functional version for the nki_rms_norm example

* Triton transpiler first version (sgl-project#144)

* Initial version. Generated demo can run.

* clear json

---------

Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>

* bug fix

* bug fix

* Triton Transpiler Update (sgl-project#150)

* Initial version. Generated demo can run.

* clear json

* Dynamic scheduling of search with OpenMP (sgl-project#142)

* fork-join working

* improve gqa

* modified z3 caching

* tested different threads

* did format.sh

* redundant code

* modified num threads

* Formal verification for equivalence checking between MuGrpahs (sgl-project#141)

* set default strides for outputs

* checkpoint

* Support input/output stride specification in search

* undo changes in cmake files

* fix json key error

* refactor search code a bit & initialize symbolic verification

* checkpoint

* debug

* fix

* fix

* format

* remove debug code

* [Transpiler] Allow the transpiler to return errors for untranspilable muGraphs (sgl-project#147)

* Update a state field to the transpileresult

* compile issues

* update interface

* add missing files

* add a constraint that each stensor can have at most 1 swizzled dim

* 1. Debug offset 2. Add TritonProfiler 3. Add mask for 'power of 2' limit 4. Add min 16 tl.dot() limit

---------

Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Kit Ao <[email protected]>
Co-authored-by: Mengdi Wu <[email protected]>
Co-authored-by: Zhihao Jia <[email protected]>

* [NKI] Allow NKI transpiler to report descriptive errors for valid mugraph to proceed to (sgl-project#151)

next mugraph

* Add Triton Transpiler doc (sgl-project#152)

* Initial version. Generated demo can run.

* clear json

* 1. Debug offset 2. Add TritonProfiler 3. Add mask for 'power of 2' limit 4. Add min 16 tl.dot() limit

* triton doc

---------

Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>

* fix unbalanced parenthesis in matmul transpose (sgl-project#154)

---------

Co-authored-by: NorthmanPKU <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Gabriele Oliaro <[email protected]>
Co-authored-by: Kit Ao <[email protected]>
Co-authored-by: Mengdi Wu <[email protected]>
Co-authored-by: segfault <[email protected]>
NorthmanPKU added a commit to NorthmanPKU/sglang that referenced this pull request May 16, 2025
* initial impl

* format

* fix bugs and add a docu

* add more operators

* a functional version for the nki_rms_norm example

* Initial version. Generated demo can run.

* clear json

* Triton transpiler first version (sgl-project#144)

* Initial version. Generated demo can run.

* clear json

---------

Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>

* bug fix

* bug fix

* 1. Debug offset 2. Add TritonProfiler 3. Add mask for 'power of 2' limit 4. Add min 16 tl.dot() limit

* Triton Transpiler Update (sgl-project#150)

* Initial version. Generated demo can run.

* clear json

* Dynamic scheduling of search with OpenMP (sgl-project#142)

* fork-join working

* improve gqa

* modified z3 caching

* tested different threads

* did format.sh

* redundant code

* modified num threads

* Formal verification for equivalence checking between MuGrpahs (sgl-project#141)

* set default strides for outputs

* checkpoint

* Support input/output stride specification in search

* undo changes in cmake files

* fix json key error

* refactor search code a bit & initialize symbolic verification

* checkpoint

* debug

* fix

* fix

* format

* remove debug code

* [Transpiler] Allow the transpiler to return errors for untranspilable muGraphs (sgl-project#147)

* Update a state field to the transpileresult

* compile issues

* update interface

* add missing files

* add a constraint that each stensor can have at most 1 swizzled dim

* 1. Debug offset 2. Add TritonProfiler 3. Add mask for 'power of 2' limit 4. Add min 16 tl.dot() limit

---------

Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Kit Ao <[email protected]>
Co-authored-by: Mengdi Wu <[email protected]>
Co-authored-by: Zhihao Jia <[email protected]>

* triton doc

* [NKI] Allow NKI transpiler to report descriptive errors for valid mugraph to proceed to (sgl-project#151)

next mugraph

* dtype consistence & del generated code

* 1. MIRAGE_ROOT in kernel.py 2. add paras in kernel.py 3. rm tqdm in loop and redundant notes 4. rm redundant output in get_input_dim_expr

* ignore

* add tqdm to requirements

* run all iters in a single subprocess

* 1. Support directly calling graph as funcs 1.1. add execute_mugraph() in generated code 1.2. change __call__ to support several backends 1.3. other relative modify 2. fix some errors in triton transpiler including mask form and matmul op

---------

Co-authored-by: Zhihao Jia <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Jianan Ji <[email protected]>
Co-authored-by: Gabriele Oliaro <[email protected]>
Co-authored-by: Kit Ao <[email protected]>
Co-authored-by: Mengdi Wu <[email protected]>
Co-authored-by: segfault <[email protected]>
pi314ever pushed a commit to pi314ever/sglang that referenced this pull request Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants