CERC-AAI / Robin

Apache License 2.0
62 stars 8 forks source link

Pythia Support #45

Closed floatingbigcat closed 7 months ago

floatingbigcat commented 8 months ago

Support neox with following changed:

Following demo code should work.

from robin.serve.pipeline import LlavaMistralPipeline
pipe = LlavaMistralPipeline(
    model_path="agi-collective/pythia-410m-deduped-ViT-B-16-finetune-lora",
    model_base="EleutherAI/pythia-410m-deduped",
)

messages = [
{"role": "USER", "content": "What's in the image?", "image": "https://llava-vl.github.io/static/images/view.jpg"},
]
messages = pipe(messages) 
print(messages)