Amazon Bedrock - Fine Tuning models Flashcards

(14 cards)

1
Q

What is fine-tuning in the context of Amazon Bedrock?

A

Fine-tuning is the process of adapting a copy of a foundation model by adding your own data, which changes the underlying weights of the base model.

Fine-tuning allows for customization of models like LLAMA 2 with specific data from Amazon S3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What type of data is required for fine-tuning a model?

A

Training data that adheres to a specific format and is stored in Amazon S3.

This data can include labeled examples for instruction-based fine-tuning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the pricing model required to use a fine-tuned custom model?

A

Provisioned throughput.

This is different from the on-demand pricing model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Are all models capable of being fine-tuned?

A

No, not all models can be fine-tuned; usually, only open-source models can be.

This limitation is important to consider when selecting models for fine-tuning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is instruction-based fine-tuning?

A

A method to improve the performance of a pre-trained foundation model on domain-specific tasks using labeled examples and prompt-response pairs.

Examples include using prompts like ‘Who is Stephane Maarek?’ with corresponding detailed responses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What type of data is needed for continued pre-training?

A

Unlabeled data.

This type of fine-tuning is also known as domain-adaptation fine-tuning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an example of continued pre-training?

A

Feeding the entire AWS documentation to a model to make it an expert on AWS.

This process involves providing large amounts of information without labeled outputs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are single-turn and multi-turn messaging in fine-tuning?

A

Single-turn messaging involves a hint for a user and assistant interaction, while multi-turn messaging involves multiple exchanges in a conversation.

These messaging types help the model understand dialogue context better.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is instruction-based fine-tuning generally cheaper than continued pre-training?

A

Instruction-based fine-tuning requires less data and less intense computations.

This makes it a more economical choice for specific adjustments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is transfer learning?

A

The concept of using a pre-trained model to adapt it to a new related task.

Transfer learning includes fine-tuning as a specific case.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are common use cases for fine-tuning?

A
  • Designing chatbots with specific personas
  • Updating models with exclusive data
  • Targeted use cases like categorization or assessing accuracy
  • Crafting advertisements
  • Training with historical data

These use cases highlight the practical applications of fine-tuning in various domains.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What distinguishes fine-tuning from general transfer learning?

A

Fine-tuning is a specific type of transfer learning focused on adapting a model to a new task using labeled or unlabeled data.

Understanding this distinction is crucial for exam questions regarding machine learning concepts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are prompt-response pairs in instruction-based fine-tuning?

A

They are examples of how a model should respond to specific prompts, providing context and expected output.

These help guide the model’s responses during training.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the impact of using provisioned throughput for fine-tuned models?

A

It increases the cost of using the fine-tuned model compared to using on-demand pricing.

This financial aspect is important when planning for model deployment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly