Skip to content

Commit

Permalink
fix: small models for local variant test (#5076)
Browse files Browse the repository at this point in the history
* fix: small models for local variant test

* fix: hf logs

* fix: change models

* fix: change embedder in gh env

* fix: rollback prints

* fix: append to other tests

* fix: comment out sleep 500

* fix: add sleep for 4 mins

GitOrigin-RevId: fce3817ce7fa1cca79c22e705e9e28b43ee61208
  • Loading branch information
berkecanrizai authored and Manul from Pathway committed Nov 27, 2023
1 parent ef81b23 commit c08d51c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/pipelines/local/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ def run(
),
host: str = "0.0.0.0",
port: int = 8080,
model_locator: str = "gpt2",
embedder_locator: str = "intfloat/e5-large-v2",
model_locator: str = os.environ.get("MODEL", "gpt2"),
embedder_locator: str = os.environ.get("EMBEDDER", "intfloat/e5-large-v2"),
embedding_dimension: int = 1024,
max_tokens: int = 60,
device: str = "cpu",
**kwargs,
):
embedder = SentenceTransformerTask(model=embedder_locator, device=device)
embedding_dimension = len(embedder(""))

documents = pw.io.jsonlines.read(
data_dir,
Expand Down

0 comments on commit c08d51c

Please sign in to comment.