Upload Existing Data
Adding pre-existing data to a container.
Boilerplate
from maniac import Maniac
maniac = Maniac()
# First, create a container if you don't already have onee
container = maniac.containers.create(
label="my-container",
initial_model="some-base-model",
initial_system_prompt="Your system prompt here",
)
# Second, create the messages object that will populate your container
dataset = [
{
"input": {
"messages": [
{"role": "system", "content": "..."},
{"role": "user", "content": "..."},
]
},
"output": {
"choices": [
{"message": {"role": "assistant", "content": "..."}}
]
},
}
]
# Register completions. These will now show up on the Maniac dashboard in your container.
maniac.chat.completions.register(
model="maniac:my-container,
dataset=dataset,
)Example: Uploading a HuggingFace Dataset
Prerequisites
Load the HuggingFace Dataset
Define the System Prompt
Create a container
Upload Data in Batches
Last updated