Skip to content
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

MicroServing Implementation #3064

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

MicroServing Implementation #3064

wants to merge 8 commits into from

Conversation

jinhongyii
Copy link
Member

This PR introduces MicroServing API. MicroServing introduces simple yet effective REST APIs to support fine-grained sub-request level actions. A programmable router transforms user requests into sub-request calls, lifting fine-grained scheduling to the API level, thus enabling the dynamic reconfiguration of different orchestration patterns.

Co-authored-by: Ruihang Lai [email protected]
Co-authored-by: Charlie Ruan [email protected]
Co-authored-by: Yingcheng Wang [email protected]

engine_config, //
model_configs, //
trace_recorder),
// EngineAction::BatchJumpForward(models, tokenizer, trace_recorder),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether we can delete batch jumpforward here.

@@ -51,7 +51,8 @@ def extract_creation_args(func: relax.Function) -> Dict[str, Any]:
"rope_scaling": json.loads(args[10].value),
"rope_ext_factors": args[11],
"rotary_dim": args[12].value.value,
"dtype": args[13].value,
"enable_disaggregation": bool(args[13].value.value),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it safe to remove enable_disaggregation? The argument is not propagated after this pass

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this one is necessary. It's part of kwargs and will be passed along

kwargs = extract_creation_args(creation_func)
self.attach_kv_cache_metadata(kwargs)
bb = relax.BlockBuilder(new_mod)
self.create_tir_paged_kv_cache(bb, kwargs)
self.create_flashinfer_paged_kv_cache(bb, kwargs)

return error_protocol.create_error_response(
HTTPStatus.BAD_REQUEST, message="The request has disconnected"
)
# TODO(Charlie): This is copied from engine.py -- why is it here? Non-streaming only has a single chunk right?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this question is not answered.

@jinhongyii
Copy link
Member Author

cc: @MasterJH5574

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants