mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-07-07 05:21:52 -07:00
Dev (#148)
* Create publish-docker-images.yaml * Add copilot_proxy publishing * Add model_converter publishing * Use dockerhub version * Do not login for PRs * Overwrite some of labels value * Move ignore files to the root of `context` * Add comments & fix some issue * Fix typos * Remove the target of the master branch * Delete .dockerignore * Delete .dockerignore * Add Flake8 * Add Flake8 and format code accordingly * Iterate on the PR template, fix the token for the contributor action * Remove converter image build * Update Dockerfile of proxy * Comment out proxy image in compose Co-authored-by: Fred de Gier <freddegier@me.com> * Fix build action --------- Co-authored-by: Rowe Wilson Frederisk Holme <frederisk@outlook.com>
This commit is contained in:
parent
1bb0e53117
commit
283668448d
13 changed files with 198 additions and 67 deletions
|
@ -27,6 +27,7 @@ def setup_module():
|
|||
if root.joinpath(".env").exists():
|
||||
shutil.move(str(root.joinpath(".env")), str(root.joinpath(".env.bak")))
|
||||
|
||||
|
||||
def teardown_module():
|
||||
"""
|
||||
Teardown steps for tests in this module
|
||||
|
@ -43,6 +44,7 @@ def teardown_module():
|
|||
f"Exception: {exc}"
|
||||
)
|
||||
|
||||
|
||||
def enter_input(proc: pexpect.spawn, expect: str, input_s: str, timeout: int = 5) -> str:
|
||||
"""
|
||||
Helper function to enter input for a given prompt. Returns consumed output.
|
||||
|
@ -61,6 +63,7 @@ def enter_input(proc: pexpect.spawn, expect: str, input_s: str, timeout: int = 5
|
|||
proc.sendline(input_s)
|
||||
return after
|
||||
|
||||
|
||||
def run_common_setup_steps(n_gpus: int = 0) -> pexpect.spawn:
|
||||
"""
|
||||
Helper function to run common setup steps.
|
||||
|
@ -78,6 +81,7 @@ def run_common_setup_steps(n_gpus: int = 0) -> pexpect.spawn:
|
|||
|
||||
return proc
|
||||
|
||||
|
||||
def load_test_env():
|
||||
"""
|
||||
Load test env vars
|
||||
|
@ -90,6 +94,7 @@ def load_test_env():
|
|||
env[key] = val
|
||||
return env
|
||||
|
||||
|
||||
def run_inference(
|
||||
prompt: str, model: str = "py-model", port: int = 5000, return_all: bool = False,
|
||||
**kwargs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue