summaryrefslogtreecommitdiff
path: root/examples/server/tests/features/environment.py
diff options
context:
space:
mode:
authorPierrick Hymbert <pierrick.hymbert@gmail.com>2024-03-02 22:00:14 +0100
committerGitHub <noreply@github.com>2024-03-02 22:00:14 +0100
commit9731134296af3a6839cd682e51d9c2109a871de5 (patch)
tree882db21742d552ee948d1b5db013f02bf35ff8fa /examples/server/tests/features/environment.py
parent4a6e2d6142ab815c964924896891e9ab3e050632 (diff)
server: tests: passkey challenge / self-extend with context shift demo (#5832)
* server: tests: add models endpoint scenario * server: /v1/models add some metadata * server: tests: add debug field in context before scenario * server: tests: download model from HF, add batch size * server: tests: add passkey test * server: tests: add group attention params * server: do not truncate prompt tokens if self-extend through group attention is enabled * server: logs: do not truncate log values * server: tests - passkey - first good working value of nga * server: tests: fix server timeout * server: tests: fix passkey, add doc, fix regex content matching, fix timeout * server: tests: fix regex content matching * server: tests: schedule slow tests on master * server: metrics: fix when no prompt processed * server: tests: self-extend add llama-2-7B and Mixtral-8x7B-v0.1 * server: tests: increase timeout for completion * server: tests: keep only the PHI-2 test * server: tests: passkey add a negative test
Diffstat (limited to 'examples/server/tests/features/environment.py')
-rw-r--r--examples/server/tests/features/environment.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/server/tests/features/environment.py b/examples/server/tests/features/environment.py
index 09e82674..9fd330db 100644
--- a/examples/server/tests/features/environment.py
+++ b/examples/server/tests/features/environment.py
@@ -7,7 +7,10 @@ from signal import SIGKILL
def before_scenario(context, scenario):
- print(f"\x1b[33;42mStarting new scenario: {scenario.name}!\x1b[0m")
+ context.debug = 'DEBUG' in os.environ and os.environ['DEBUG'] == 'ON'
+ if context.debug:
+ print("DEBUG=ON\n")
+ print(f"\x1b[33;42mStarting new scenario: {scenario.name}!\x1b[0m\n")
port = 8080
if 'PORT' in os.environ:
port = int(os.environ['PORT'])