Task Caching Demo
Demonstrates the effect of using a dynamically generated cheatsheet (Task Caching) on model inference. Uses SambaNova API via litellm
.
Paste your training data below, one example per line. This data will be used to build a cumulative cheatsheet. The process may take some time depending on the number of examples.
Enter your query below. The model will attempt to answer it twice: once using the generated cheatsheet (if any), and once without it.
Important: Ensure SAMBANOVA_API_KEY
is set as a secret in your Hugging Face Space or as an environment variable if running locally. SAMBANOVA_BASE_URL
is set to https://api.sambanova.ai/v1
by default if not found in environment.