Ean Garvey
e6cb5cef57
Add --additional_runtime_args option and use in OPT example. ( #1855 )
...
* Add --additional_runtime_args option and use in OPT example.
Fix the func name. (#1838 )
Co-authored-by: Sungsoon Cho <sungsoon.cho@gmail.com >
2023-10-19 13:29:39 -05:00
Huang Qi
66abee8e5b
SharkInference: Fix various examples and README.md ( #1903 )
...
Follow https://github.com/nod-ai/SHARK/pull/708 , remove parameter 'func_name'
for SharkInference.
2023-10-19 09:28:36 -05:00
Stanley Winata
51a1009796
Add Forward method to SHARKRunner and fix examples. ( #1756 )
2023-08-14 19:20:37 -07:00
PhaneeshB
4684afad34
update upscalar example
2023-07-28 21:06:28 +05:30
Vivek Khandelwal
11f62d7fac
Minor fixes for MiniLM Training
2023-07-18 17:16:44 +05:30
Prashant Kumar
1c32915570
Add the shark compile downstream due to https://github.com/pytorch/pytorch/pull/104185#issuecomment-1615110613 ( #1615 )
2023-07-01 08:30:58 -07:00
Abhishek Varma
d496053590
[SHARK] Add a compile API to use for quick testing of inference ( #1606 )
2023-06-28 08:40:28 -07:00
Abhishek Varma
3fb72e192e
Add patch for making compile API work for both MEGABYTE and MiniGPT4 ( #1559 )
...
-- It also modifies the mega_test.py script
Signed-off-by: Abhishek Varma <abhishek@nod-labs.com >
2023-06-20 10:04:17 -07:00
powderluv
a544f30a8f
Move mega to the shark examples ( #1555 )
2023-06-19 11:10:51 -07:00
Ean Garvey
a07fe80530
Update OPT, ResNet example scripts. ( #1492 )
...
* Update API in OPT example.
* fix resnet50 script
* Add OPT1.3b test script.
2023-06-05 20:19:35 -07:00
Boian Petkantchin
20114deea0
In MiniLM JAX example verify MLIR result against JAX
2023-05-16 09:54:07 -07:00
powderluv
d816cc015e
Revert "added standalone vicuna script ( #1399 )" ( #1402 )
...
This reverts commit 0e4a8ca240 .
2023-05-05 16:08:05 -07:00
Eliasj42
0e4a8ca240
added standalone vicuna script ( #1399 )
...
Co-authored-by: Elias Joseph <elias@nod-labs.com >
2023-05-05 15:46:05 -07:00
Boian Petkantchin
eba4d06405
In MiniLM JAX example do not hardcode device ( #1385 )
...
* In MiniLM JAX example do not hardcode device
* In MiniLM JAX example don't use bytecode MLIR
---------
Co-authored-by: Boian Petkantchin <boian@nod-labs.com >
2023-05-03 10:34:42 -07:00
Boian Petkantchin
4cfba153d2
Add example JAX MiniLM inference ( #1380 )
...
* Do not hardcode the name of the VM module in get_iree_module
* Add example JAX MiniLM inference
---------
Co-authored-by: Boian Petkantchin <boian@nod-labs.com >
2023-05-02 15:03:54 -07:00
powderluv
f898a1d332
Update README.md
2023-03-12 16:54:42 -07:00
Prashant Kumar
97fdff7f19
Add instructions how to run the LLaMA model. ( #1168 )
...
* Add instructions how to run the LLaMA model.
* Update README.md
2023-03-10 12:36:37 -08:00
Anush Elangovan
ce6d82eab2
Fix bloom lint
2023-03-10 11:53:08 -08:00
Eliasj42
b23d3aa584
added more memory efficient method to run large bloom models with sharded blooms ( #1165 )
...
Co-authored-by: Elias Joseph <elias@nod-labs.com >
2023-03-10 09:32:56 -08:00
Vivek Khandelwal
495670d9b6
Fix SD fine tuning script device arg usage
2023-03-10 18:37:53 +05:30
Eliasj42
93891984f3
made sharded bloom example more user friendly ( #1153 )
...
Co-authored-by: Elias Joseph <elias@nod-labs.com >
2023-03-06 10:23:48 -08:00
Vivek Khandelwal
cc0ef54e0e
Fix Stable diffusion fine tuning script
2023-03-06 17:52:16 +05:30
Daniel Garvey
812152485d
temporarily xfail tiny convnext macos ( #1142 )
2023-03-03 13:30:56 -06:00
Vivek Khandelwal
0816fb403a
Add Stable diffusion fine tuning script
...
This commit adds the sd fine tuning script which runs through the
torchdynamo path.
2023-03-03 21:59:00 +05:30
jinchen62
a01154a507
Add SD outpainting ( #1072 )
...
python apps/stable_diffusion/scripts/outpaint.py --prompt="Face of a yellow cat, high resolution, sitting on a park bench" --img_path=test_imgs/overture-creations-5sI6fQgYIuo.png --import_mlir --hf_model_id="stabilityai/stable-diffusion-2-inpainting" --pixels=128 --mask_blur=8 --left --right --top --bottom --steps=20
2023-02-22 23:16:05 -08:00
Eliasj42
5ff40a0d2d
added an example to run sharded bloom ( #1079 )
...
added ability to compile sharded mlir files from hugingface models
Co-authored-by: Elias Joseph <elias@nod-labs.com >
2023-02-22 22:48:58 -08:00
Eliasj42
87fd13d8eb
added an example to run sharded bloom ( #1003 )
...
Co-authored-by: Elias Joseph <elias@nod-labs.com >
2023-02-13 10:37:47 -08:00
Prashant Kumar
3595b4aaff
Incorporate latest changes in the shark_dynamo backend.
2023-02-08 20:37:30 +05:30
Quinn Dawkins
fbd6224b04
Revert "Revert pipelines ( #948 )" ( #951 )
...
This reverts commit 8115b26079 .
Additionally fixes img2col by adding detach elementwise from named op
passes.
2023-02-04 22:44:08 -05:00
powderluv
8115b26079
Revert pipelines ( #948 )
...
* Revert "[SD] Modify the flags to use --iree-preprocessing-pass-pipeline (#914 )"
This reverts commit a783c089a9 .
* Revert "Fix iree flags due to the change in shark-runtime (#944 )"
This reverts commit 1d38d49162 .
2023-02-04 07:09:51 -08:00
yzhang93
1d38d49162
Fix iree flags due to the change in shark-runtime ( #944 )
2023-02-03 21:34:02 -08:00
powderluv
e26a70aa4f
Drop old cli and webui ( #911 )
2023-02-01 13:13:46 -08:00
Daniel Garvey
6a32a4e26c
move ci sd stuff to apps ( #912 )
...
Co-authored-by: dan <dan@nod-labs.com >
Co-authored-by: powderluv <powderluv@users.noreply.github.com >
2023-02-01 12:15:07 -08:00
powderluv
e853abf98b
Update stable_diffusion_amd.md
2023-02-01 11:11:58 -08:00
Daniel Garvey
e374074013
Windows test ( #896 )
...
* add generate_sharktank for stable_diffusion model defaults
* add windows test for sd
---------
Co-authored-by: dan <dan@nod-labs.com >
2023-02-01 12:03:54 -06:00
Evan Guan
8cafe56eb4
Added flags for metadata information. ( #894 )
2023-02-01 05:16:11 -08:00
powderluv
1a37675435
Revert "move beta to release ( #898 )" ( #905 )
...
This reverts commit 7edcaf5a06 .
2023-01-31 20:31:41 -08:00
Ean Garvey
a504903dd5
Fix formatting issues. ( #903 )
2023-02-01 09:12:45 +05:30
Daniel Garvey
7edcaf5a06
move beta to release ( #898 )
...
Co-authored-by: dan <dan@nod-labs.com >
2023-01-31 17:14:08 -06:00
Gaurav Shukla
c124b76328
[SD] Reorganize the stable diffusion model. ( #806 )
...
The stable diffusion codebase has been reorganized to make it more
modular so that the same script can be used for web as well as cli,
instead of duplicating the whole codebase.
Signed-off-by: Gaurav Shukla <gaurav@nod-labs.com >
2023-01-31 14:42:41 -08:00
Daniel Garvey
a4634632ba
add generate_sharktank for stable_diffusion model defaults ( #742 )
...
Co-authored-by: dan <dan@nod-labs.com >
Co-authored-by: powderluv <powderluv@users.noreply.github.com >
2023-01-31 09:44:54 -08:00
Abhishek Varma
d17e8dc5ad
[NFC] Rename SD negative_prompts flag
...
-- This commit renames SD `negative-prompts` -> `negative_prompts` flag.
Signed-off-by: Abhishek Varma <abhishek@nod-labs.com >
2023-01-31 21:38:59 +05:30
Abhishek Varma
fcd62513cf
[SD-CLI] Add support for .safetensors + Use diffusers pipeline to load SD
...
-- This commit uses `load_pipeline_from_original_stable_diffusion_ckpt`
as exposed due to [Diffusers PR](https://github.com/huggingface/diffusers/pull/2019 ).
-- It also adds a support for the end users to use `.safetensors` along
with `.ckpt` file.
Signed-off-by: Abhishek Varma <abhishek@nod-labs.com >
2023-01-31 00:00:37 +05:30
Abhishek Varma
c3c701e654
Update requirements.txt + README.md of SD
...
-- This commit includes two python modules as part of requirements.txt.
-- It also updates README.md to also inclue `--no-use_tuned` for users to
be able to try `hf_model_id` or `ckpt_loc` without any issue.
Signed-off-by: Abhishek Varma <abhishek@nod-labs.com >
2023-01-30 14:12:54 +05:30
yzhang93
9644e78545
Fix CUDA tuned model annotation ( #880 )
2023-01-27 11:35:18 -08:00
dymil
c911189ef0
Add note about latest RDNA3 driver support ( #881 )
...
Also tweak other wording
2023-01-27 09:39:19 -08:00
Abhishek Varma
1118b4b651
[SD-CLI] Clean up vmfbs if a retry method fails
...
-- This commit cleans up vmfb files generated as a result of retry method.
Signed-off-by: Abhishek Varma <abhishek@nod-labs.com >
2023-01-27 21:55:36 +05:30
PhaneeshB
4be75d4418
fix seed values in SD json and filename
2023-01-27 18:40:26 +05:30
yzhang93
fee73b0b63
Add SD model annotation on fly ( #869 )
...
* Add SD model annotation on fly
* Move tuned_compile_through_fx to utils
* Fix SD compilation flags
2023-01-26 11:46:36 -08:00
powderluv
9bbffa519e
Add an option to respect LLPC env var ( #875 )
...
Also add OSX paths
2023-01-25 13:56:55 -08:00