Commit Graph

238 Commits

Author SHA1 Message Date
Aaron Pham [bot]
9be65a813b infra: bump to dev version of 0.1.7.dev0 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-17 13:12:46 +00:00
Aaron Pham [bot]
ed398c38f8 infra: prepare for release 0.1.6 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-17 13:02:47 +00:00
Aaron Pham
6f724416c0 perf: build quantization and better transformer behaviour (#28)
Fixes quantization_config and low_cpu_mem_usage to be available on PyTorch implementation only

See changelog for more details on #28
2023-06-17 08:56:14 -04:00
Aaron
233d4697b5 chore: update __all__ to take into _extra_objects
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-16 18:13:35 -04:00
Aaron Pham
ded8a9f809 feat: quantization (#27) 2023-06-16 18:10:50 -04:00
Aaron Pham
19bc7e3116 feat: fine-tuning [part 1] (#23) 2023-06-16 00:19:01 -04:00
Aaron
b9ff4ab92a chore: flatten examples llm-config
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-15 18:39:33 -04:00
Aaron
e4b7714756 chore(js): update metadata
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-15 13:18:05 -04:00
Aaron Pham
5e1445218b refactor: toplevel CLI (#26)
Move up CLI outside of the factory function to simplify workflow
2023-06-15 02:32:46 -04:00
Aaron Pham [bot]
9a6a976ce1 infra: bump to dev version of 0.1.6.dev0 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-15 06:16:12 +00:00
Aaron Pham [bot]
bb425b89d9 infra: prepare for release 0.1.5 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-15 06:05:35 +00:00
Aaron
528f76e1d0 fix(client): using httpx for running calls within async context
This is so that client.query works within a async context

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-15 01:58:49 -04:00
aarnphm-ec2-dev
b3d924e6d6 fix(dolly): make sure to use GPU when available
map device_map to auto when GPU is available

Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-15 05:53:14 +00:00
aarnphm-ec2-dev
dfe71d7867 chore(cli): redirect download models into subcontext
utilise click subcontext for nicer CLI interaction

Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-14 11:44:39 +00:00
Aaron
d7e92ae525 feat(cli): --device all --workers-per-resource
synonymous to the configuration arguments

add support for --device all

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-14 06:36:54 -04:00
Aaron Pham [bot]
123d9c442f infra: bump to dev version of 0.1.5.dev0 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-14 07:43:54 +00:00
Aaron Pham [bot]
f9c0a1093b infra: prepare for release 0.1.4 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-14 07:33:16 +00:00
Aaron
be41c23c10 codegen: remove black as dependencies
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-14 03:22:05 -04:00
Aaron
50d59cdf8d types: rename interface
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-14 02:45:34 -04:00
Aaron Pham [bot]
47da1916ad infra: bump to dev version of 0.1.4.dev0 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-14 05:56:49 +00:00
Aaron Pham [bot]
52d786edc7 infra: prepare for release 0.1.3 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-14 05:46:29 +00:00
Aaron
111d205f63 perf: faster LLM loading
using attrs for faster class creation opposed to metaclass

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-14 01:36:42 -04:00
Aaron
ebcedc35de fix(exception): handle notfound explicitly
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-13 20:15:38 -04:00
Aaron
0ab7450e90 chore(types): add hints for LLMRunner
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-13 20:13:33 -04:00
Aaron
03c90c2a13 fix(llm): ensure we don't bleed runner options
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-13 20:05:33 -04:00
Aaron
e3ccf766d7 chore: expose LLMRunner for type
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-13 19:47:36 -04:00
aarnphm-ec2-dev
1194684658 fix(llm): cached load
Ensure we only load the llm once

fix falcon offloading load

Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-13 14:22:09 +00:00
Aaron Pham [bot]
ece2b377c0 infra: bump to dev version of 0.1.3.dev0 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-13 11:24:14 +00:00
Aaron Pham [bot]
398ed85b9b infra: prepare for release 0.1.2 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-13 11:14:25 +00:00
Aaron
cb76a894cf feat(metadata): add configuration to metadata endpoint
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-13 07:09:31 -04:00
Aaron Pham
dd20941050 chore: metadata (#19) 2023-06-13 04:09:33 -04:00
Aaron Pham [bot]
b5547bbc97 infra: bump to dev version of 0.1.2.dev0 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-12 20:30:48 +00:00
Aaron Pham [bot]
f85bbec147 infra: prepare for release 0.1.1 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-12 20:19:34 +00:00
Aaron
71070b90b4 chore(metadata): fix model_id to be respected on service.py
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-12 16:04:52 -04:00
Aaron
4717989384 fix(tokenizers): allow forking by default
address message about forking in tokenizers

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-12 15:47:51 -04:00
Aaron
aa8812cf90 fix(build): empty model_id
Set the envvar after we initialize LLM

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-12 14:31:34 -04:00
Aaron
30a8c32a53 infra: bump to dev version of 0.1.1.dev0 [generated]
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-12 14:31:34 -04:00
Aaron
53a63dbe78 infra: prepare for release 0.1.0
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-12 14:23:26 -04:00
Aaron Pham
f8ebb36e15 tests: fastpath (#17)
added fastpath cases for configuration and Flan-T5

fixes respecting model_id into lifecycle hooks.

update CLI to cleanup models info
2023-06-12 14:18:26 -04:00
Aaron
f8e99dd8f5 chore(configuration): clean house implementation
Using Attrs implementation

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2023-06-11 18:46:15 -04:00
aarnphm-ec2-dev
1847209489 feat(cli): --workers
provide workers-per-resource configuration on CLI for build and start

Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-11 16:22:13 +00:00
aarnphm-ec2-dev
81d46ca211 feat(type): support annotations
openllm.LLM now supports fully typed-strict

openllm.LLM[ModelType, TokenizerType] -> self.model, self.tokenizer

Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-11 14:58:17 +00:00
aarnphm-ec2-dev
2e453fb005 refactor(configuration): __config__ and perf
move model_ids and default_id to config class declaration,
cleanup dependencies between config and LLM implementation

lazy load module during LLM creation to llm_post_init

fix post_init hooks to run load_in_mha.

Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-11 12:53:15 +00:00
aarnphm-ec2-dev
17241292da feat(cli): show runtime implementation
Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-11 05:29:40 +00:00
Aaron Pham [bot]
3177781e50 infra: bump to dev version of 0.0.35.dev0 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-11 04:45:24 +00:00
Aaron Pham [bot]
0552b32456 infra: prepare for release 0.0.34 [generated]
Signed-off-by: Aaron Pham [bot] <29749331+aarnphm@users.noreply.github.com>
2023-06-11 04:35:30 +00:00
aarnphm-ec2-dev
a5efb7fcb1 fix(stablelm): running on GPU
Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-11 04:28:22 +00:00
aarnphm-ec2-dev
8762a56093 revert: broken KeyboardInterrupt change
Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-11 04:20:07 +00:00
aarnphm-ec2-dev
512cd0715c feat(service): implementing with lifecycle hooks
Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-11 04:14:18 +00:00
aarnphm-ec2-dev
5a7942574f chore(docs): update docs for to_runner
Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
2023-06-11 03:38:56 +00:00