Skip to content

jataware/jlai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jlai

Playing w/ scaling out via modal

Embeddings

Embeddings via text-embeddings-inference:

# --
# dev
JLAI_MAX_CONTAINERS=10 JLAI_GPU_TYPE=A10G modal run -m jlai.embed.tei --test
# or
JLAI_MAX_CONTAINERS=10 JLAI_GPU_TYPE=A10G modal run -m jlai.embed.tei --inpath data.jl --outpath embeddings.npy
# `data.jl` has lines like `{"test" : "i am a sentence"}`

# --
# prod
JLAI_MAX_CONTAINERS=10 JLAI_GPU_TYPE=A10G modal deploy -m jlai.embed.tei
# ... and then can `pip install jlai` and you can call embed_dataset from anywhere and it does GPUs / autoscaling ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages