generate_text
Generate high-quality text using a fine-tuned Unsloth model by specifying a prompt, model path, and optional parameters like temperature, top-p, and max tokens for tailored outputs.
Instructions
Generate text using a fine-tuned Unsloth model
Input Schema
Name | Required | Description | Default |
---|---|---|---|
max_new_tokens | No | Maximum number of tokens to generate | |
model_path | Yes | Path to the fine-tuned model | |
prompt | Yes | Prompt for text generation | |
temperature | No | Temperature for text generation | |
top_p | No | Top-p for text generation |
Input Schema (JSON Schema)
{
"properties": {
"max_new_tokens": {
"description": "Maximum number of tokens to generate",
"type": "number"
},
"model_path": {
"description": "Path to the fine-tuned model",
"type": "string"
},
"prompt": {
"description": "Prompt for text generation",
"type": "string"
},
"temperature": {
"description": "Temperature for text generation",
"type": "number"
},
"top_p": {
"description": "Top-p for text generation",
"type": "number"
}
},
"required": [
"model_path",
"prompt"
],
"type": "object"
}