-
Notifications
You must be signed in to change notification settings - Fork 106
Model run refactor and support async LLAPI #537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Implement modelrun async LLAPI.
fe5cd80
to
72fe75f
Compare
Implement modelrun async LLAPI.
Merge with master
769b65e
to
a2c2d45
Compare
This reverts commit 72fe75f.
4f0c05b
to
ae48edc
Compare
Codecov Report
@@ Coverage Diff @@
## master #537 +/- ##
==========================================
+ Coverage 75.35% 75.74% +0.38%
==========================================
Files 22 25 +3
Lines 5226 5384 +158
==========================================
+ Hits 3938 4078 +140
- Misses 1288 1306 +18
Continue to review full report at Codecov.
|
…parser file. The parsing is split according to the original command, and at the end we always create run info and sent it to queues.
9cf5b23
to
9624857
Compare
src/DAG/dag.c
Outdated
if (tensor) | ||
StoreTensorInKeySpace(ctx, tensor, key_string, mangled); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In which situations we will have NULL
here and why we continue without errors?
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
c1e8517
to
79f7a0d
Compare
a756fed
to
acd7c8a
Compare
acd7c8a
to
2b539d4
Compare
src/run_info.c
Outdated
RAI_DagOp *op = rinfo->dagOps[0]; | ||
RAI_SetError(err, RAI_GetErrorCode(op->err), RAI_GetError(op->err)); | ||
RAI_ModelRunCtx *mctx = op->mctx; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if user do this operation over a DAG which is not modelrun?
Please validate that mctx
is actually model run context and return NULL in case it doesn't.
also, why duplicate the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User should not call this in a DAGRUN OnFinish CB, but only in a MODELRUN. I can set this in the error msg.
The error is not duplicated, we copy from the runInfo to the RAI_Error that the user sent and then we remove the runInfo (which contains the error in its first op, but not in the mctx).
char buf[16]; | ||
sprintf(buf, "%04d", *instance); | ||
RedisModuleString *mangled_key = RedisModule_CreateStringFromString(NULL, key); | ||
RedisModule_StringAppendBuffer(NULL, mangled_key, buf, strlen(buf)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is duplicated 4 times. funciton?
No description provided.