-
Notifications
You must be signed in to change notification settings - Fork 106
lite & rce #603
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
lite & rce #603
Conversation
Codecov Report
@@ Coverage Diff @@
## master #603 +/- ##
==========================================
- Coverage 78.28% 78.25% -0.04%
==========================================
Files 41 41
Lines 6535 6535
==========================================
- Hits 5116 5114 -2
- Misses 1419 1421 +2
Continue to review full report at Codecov.
|
opt/pack.sh
Outdated
if [[ -z $VARIANT ]]; then | ||
local rampfile=ramp.yml | ||
else | ||
local rampfile=ramp$VARIANT.yml |
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.
local rampfile=ramp-${VARIANT}.yml
opt/Makefile
Outdated
@@ -219,9 +219,13 @@ pack: $(INSTALLED_TARGET) | |||
$(SHOW)find $(INSTALL_DIR) -name "*.so" -exec chmod +x {} \; | |||
$(SHOW)mkdir -p $(ROOT)/bin/artifacts | |||
ifneq ($(PACK_DEPS),0) | |||
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 DEPS=1 ./pack.sh | |||
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=0 DEPS=1 ./pack.sh |
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.
why RAMP=0
here?
Also, we can avoid the large ifneq ($(PACK_DEPS),0)
and just arrange DEPS=$(PACK_DEPS)
with the following:
ifneq ($(PACK_DEPS),0)
override PACK_DEPS:=1
endif
opt/pack.sh
Outdated
if [[ -z $VARIANT ]]; then | ||
local rampfile=ramp.yml | ||
else | ||
local rampfile=ramp${VARIANT}.yml |
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.
local rampfile=ramp-${VARIANT}.yml
(added hyphen)
opt/Makefile
Outdated
pack: $(INSTALLED_TARGET) | ||
$(SHOW)find $(INSTALL_DIR) -name "*.so" -exec chmod +x {} \; | ||
$(SHOW)mkdir -p $(ROOT)/bin/artifacts | ||
|
||
ifneq ($(PACK_DEPS),0) | ||
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 DEPS=1 ./pack.sh | ||
else | ||
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 DEPS=0 ./pack.sh | ||
override PACK_DEPS:=1 | ||
endif | ||
DEPS=$(PACK_DEPS) | ||
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 ./pack.sh | ||
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 VARIANT=lite ./pack.sh | ||
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 VARIANT=rce ./pack.sh |
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.
ifneq ($(PACK_DEPS),0)
override PACK_DEPS:=1
endif
pack: $(INSTALLED_TARGET)
$(SHOW)find $(INSTALL_DIR) -name "*.so" -exec chmod +x {} \;
$(SHOW)mkdir -p $(ROOT)/bin/artifacts
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) DEPS=$(PACK_DEPS) ./pack.sh
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) DEPS=$(PACK_DEPS) VARIANT=lite ./pack.sh
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) DEPS=$(PACK_DEPS) VARIANT=rce ./pack.sh
This PR allows a new variant for Redis AI - Lite
This variant will not broadcast models/scripts in the enterprise cluster and will allow:
resharding
Rof
Replica of
This PR also introduce the RCE variant which is based on the lite, with only ONNX backend