0
0
Prompt Engineering / GenAIml~20 mins

OpenAI fine-tuning API in Prompt Engineering / GenAI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
OpenAI Fine-Tuning Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding fine-tuning data format
Which of the following best describes the required format for training data when using the OpenAI fine-tuning API?
AA plain text file with prompts and completions separated by a blank line.
BA CSV file with columns 'input' and 'output' containing raw text data.
CA JSONL file where each line is a JSON object with keys 'prompt' and 'completion', both as strings.
DAn XML file with nested tags for prompts and completions.
Attempts:
2 left
💡 Hint
Think about the file format that supports line-by-line JSON objects.
Model Choice
intermediate
2:00remaining
Choosing the base model for fine-tuning
You want to fine-tune a model for a task requiring understanding of complex instructions and generating detailed text. Which base model should you choose from OpenAI's options?
Acurie
Bada
Cbabbage
Ddavinci
Attempts:
2 left
💡 Hint
Consider the model with the highest capability for complex tasks.
Hyperparameter
advanced
2:00remaining
Effect of 'n_epochs' in fine-tuning
What is the effect of increasing the 'n_epochs' parameter during OpenAI fine-tuning?
AThe model trains for more passes over the training data, potentially improving fit but risking overfitting.
BThe model uses more layers internally to increase capacity.
CThe learning rate is automatically increased to speed up training.
DThe batch size is reduced to improve gradient estimation.
Attempts:
2 left
💡 Hint
Think about what 'epochs' means in machine learning training.
Metrics
advanced
2:00remaining
Evaluating fine-tuned model performance
After fine-tuning a model with OpenAI's API, which metric is most appropriate to evaluate its performance on a text generation task?
APerplexity on a held-out validation set
BAccuracy of classification labels
CMean squared error between input and output
DConfusion matrix of predicted classes
Attempts:
2 left
💡 Hint
Consider metrics used for language models generating text.
🔧 Debug
expert
3:00remaining
Diagnosing fine-tuning failure due to data formatting
You submitted a JSONL file for fine-tuning but received an error: 'Invalid JSONL format'. Which of the following issues would cause this error?
AThe file uses UTF-8 encoding
BOne line in the file is missing a closing brace '}'
CEach line contains a valid JSON object with 'prompt' and 'completion'
DThe file has Unix-style line endings '\n'
Attempts:
2 left
💡 Hint
Invalid JSON means a syntax problem in the JSON structure.