Commit Graph
58 Commits
Author SHA1 Message Date
Michael Poutre fccffdbdf0 feat: Add support for post embedding modifiers 2023-11-13 19:47:56 -08:00
Michael Poutre 7e138268f9 chore: Cleanup imports 2023-11-13 19:47:56 -08:00
Michael Poutre ef3f66ef91 refactor/fix: More fixes to align with clip changes in base 2023-11-13 19:47:56 -08:00
Michael Poutre 2f115352ec refactor/fix(SD1): Update for changes to clip handling
Fix end token calculation for long prompts
2023-11-13 19:47:56 -08:00
Michael Poutre a0ebcdaf4d fix(Clip): Fix bug in EOT token detection 2023-11-13 19:47:56 -08:00
Michael Poutre 55cc09b0be feat(SDXL): Initial stab at SDXL 2023-11-13 19:47:56 -08:00
Michael Poutre 6444e2890a feat(func/setDims): Add func 2023-09-04 23:35:24 -07:00
Michael Poutre 70704f5e68 feat(func/scaleDims): Add scaleDims 2023-09-04 18:15:30 -07:00
Michael Poutre e59aaa499d fix(action reg): Don't allow multiple actions with same name 2023-09-04 18:00:35 -07:00
Michael Poutre c98df8d289 feat(fun/average): Add function 2023-08-31 23:50:45 -07:00
Michael Poutre ce795c52bc refactor(func/mult): Update error messages 2023-08-31 22:51:27 -07:00
Michael Poutre 5362ac75fa feat(func/slerp): Add function 2023-08-31 22:50:47 -07:00
Michael Poutre 4fcdee837b fix(func/sum): Allow for passing a single argument 2023-08-31 21:47:22 -07:00
Michael Poutre 6b2bf7485e fix(promptsegment): Put tokens on same device as embeddingmodule weights 2023-08-31 14:19:49 -07:00
Michael Poutre d330663624 fix(promtsegment): Put tokens on the GPU 2023-08-31 14:13:39 -07:00
Michael Poutre 0f36544b0e feat(func): Add Mult 2023-08-31 00:29:58 -07:00
Michael Poutre 9ccf5d2583 feat: Use a more generic grammar to allow for easier interoperability 2023-08-30 23:40:39 -07:00
Michael Poutre f185b39f06 feat(func/rand): Add support for defining range for rand 2023-08-30 21:06:23 -07:00
Michael Poutre af761a5620 feat(func): Add rand(<token_length>) 2023-08-30 20:29:46 -07:00
Michael Poutre fee9c56abd refactor: Rename repo to match github 2023-08-30 18:44:11 -07:00
Michael Poutre bcc083f2fa fix: Use typing.List for backwards compatibility 2023-08-30 18:09:10 -07:00
Michael Poutre f91d3aa233 fix(Typing): Replace | syntax with Union 2023-08-29 16:23:05 -07:00
Michael Poutre df98b07ffc fix(ClipTransformer): Fix causal_map change between transformer versions 2023-08-28 22:28:10 -07:00
Michael Poutre 5be4787a12 fix(ClipTransformer): Update with transformers library 2023-08-28 22:01:16 -07:00
Michael Poutre ade09bf806 update(clip_model): Sync with upstream 2023-08-28 20:19:52 -07:00
Michael Poutre bdb4d00910 fix(tokenizer): Fix issue when prompt is just an action, and has no tree 2023-08-25 18:59:28 -07:00
Michael Poutre c28099021b remove old actions 2023-08-25 00:06:17 -07:00
Michael Poutre 2d2d29bd5a feat: Push new functions 2023-08-25 00:06:17 -07:00
Michael Poutre d0719cb9bc Removed old implementation of action processing 2023-08-25 00:06:17 -07:00
Michael Poutre 3fc1a7d7b9 minor comment change 2023-08-25 00:06:17 -07:00
Michael Poutre f66eeb8117 tokenizer: Use SegOrAction 2023-08-25 00:06:17 -07:00
Michael Poutre d5a2cba894 Rename to PromptLangClipModel 2023-08-25 00:06:17 -07:00
Michael Poutre 0eaa2c1c41 Add comments to ClipModel to notate changes from base 2023-08-25 00:06:17 -07:00
Michael Poutre 553f90691e refactor(ClipModel): Remove position_id support and **kwargs 2023-08-25 00:06:17 -07:00
Michael Poutre c4769a797b My -> PromptLang 2023-08-25 00:06:17 -07:00
Michael Poutre 0fdc4244f1 Remove final references to TokenDict 2023-08-25 00:06:17 -07:00
Michael Poutre 4057ff8347 Move build_prompt_segment to parser package 2023-08-25 00:06:17 -07:00
Michael Poutre 5f84a4b530 cleanup some imports 2023-08-25 00:06:17 -07:00
Michael Poutre fc3560be65 refactor: Move core action stuff to lib/action 2023-08-25 00:06:17 -07:00
Michael Poutre 833a027486 refactor: Move PromptSegment to parser module 2023-08-25 00:06:17 -07:00
Michael Poutre 6b8a1ea243 Initial Switch to Lark parser 2023-08-25 00:06:17 -07:00
Michael Poutre 07cec3f68f refactor: Add SegOrAction type 2023-08-25 00:06:17 -07:00
Michael Poutre c9f7895f62 Cleanup Comments 2023-08-25 00:06:17 -07:00
Michael Poutre b125677e6d init 2023-08-25 00:06:17 -07:00
Michael Poutre 7ced8b7533 Initial working commit 2023-08-25 00:06:17 -07:00
Michael Poutre c6dc33a9ae Switch to build_prompt_segment to allow manual creation of prompt segs 2023-08-25 00:06:17 -07:00
Michael Poutre 110da543ed Update regex to capture embeddings properly 2023-08-25 00:06:17 -07:00
Michael Poutre 21eecda007 Switch to using PromptSegment to represent text chunks also add tokens 2023-08-25 00:06:17 -07:00
Michael Poutre 235a681f70 Tokenizer and parser completed 2023-08-25 00:06:17 -07:00
Michael Poutre 0ef03276d5 formatting: Minor formatting clean up 2023-08-20 17:59:13 -07:00