Commit 719a895
authored
Update logic of response generation in case of dataset usage (#257)
* - change logic of selection of response from the dataset, description will be added to readme
- move all sqlite related code in custom dataset to helper class
- update dataset tests accordingly
- remove duplicated definitions
- open sqlite db in read-only mode, this will allow to support datasets in DP mode
- do not allow dataset definition in echo mode
Signed-off-by: Maya Barnea <[email protected]>
* - Support DP and dataset
- Separate between loading custom dataset from a local file and dataset download
- If custom dataset's url is defined in command line - download the dataset before initializing simulator(s)
Signed-off-by: Maya Barnea <[email protected]>
* Add explanation about response generation to readme
Signed-off-by: Maya Barnea <[email protected]>
* BaseDataset renames to DefaultDataset, readme updated, more changes by PR comments
Signed-off-by: Maya Barnea <[email protected]>
* add explanation for getTokensInEchoMode
Signed-off-by: Maya Barnea <[email protected]>
* Fixed typos in readme, fixes in GetTokens os the custom dataset, tests added for GetTokens to improve coverage
Signed-off-by: Maya Barnea <[email protected]>
* fix lint
Signed-off-by: Maya Barnea <[email protected]>
* test fixes according to PR comments
Signed-off-by: Maya Barnea <[email protected]>
* fix lint issues
Signed-off-by: Maya Barnea <[email protected]>
---------
Signed-off-by: Maya Barnea <[email protected]>1 parent ff4c9ea commit 719a895
File tree
18 files changed
+1253
-846
lines changed- pkg
- common
- dataset
- llm-d-inference-sim
- openai-server-api
18 files changed
+1253
-846
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
663 | 667 | | |
664 | 668 | | |
665 | 669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
535 | 541 | | |
536 | 542 | | |
537 | 543 | | |
| |||
0 commit comments