by simonw · 3y ago · 0 comments
Here's the full implementation of that llm-replicate plugin: https://github.com/simonw/llm-replicate/blob/0.2/llm_replica...
If you want to write a plugin for some other LLM I have a detailed tutorial here: https://llm.datasette.io/en/stable/plugins/tutorial-model-pl... - plus a bunch of examples linked from here: https://github.com/simonw/llm-plugins
As for pricing, that model's pages says: "Predictions run on Nvidia A100 (80GB) GPU hardware. Predictions typically complete within 17 seconds."
And the pricing page (https://replicate.com/pricing) says Nvidia A100 (80GB) GPU hardware costs $0.0032 per second.
So Llama 2 70B would "typically" cost under 17 x 0.0032 = $0.0544 per run.
> Run time and cost
> Predictions run on Nvidia A100 (40GB) GPU hardware. Predictions typically complete within 9 seconds.