w11:20251126
學號:1111310108 姓名:阮文信
1. 設定 colab

2.情緒分析的 pipeline
輸入: I love this course! Transformers are amazing.
結果: [{'label': 'POSITIVE', 'score': 0.9998855590820312}]

3."這堂 Transformer 課超棒 I really like it!"
"今天上課很興趣."
"天氣不錯,很好."

輸入: 這堂 Transformer 課超棒 I really like it!
結果: [{'label': 'POSITIVE', 'score': 0.9997366070747375}]
輸入: 今天上課很興趣.
結果: [{'label': 'NEGATIVE', 'score': 0.8883184790611267}]
輸入: 天氣不錯,很好.
結果: [{'label': 'NEGATIVE', 'score': 0.8669969439506531}]
4. Practice 2 (Text Generation)

=== 生成結果 3 ===
In the future, artificial intelligence will be able to do things like understand the world, predict weather patterns and predict the future, and it could even help us to predict the future, or even to predict the future itself. And that's all great news. But I'm not sure that's going to happen anytime soon. I think it's going to take a long time, but I think it's going to take a lot of effort.
A lot of people are worried that artificial intelligence will take over, but I think that's not going to happen anytime soon.
So I think that's very important to us. I think that's the first step in the right direction. I think that if you have a system that's able to predict what people are going to say, you have a system that can predict what people are going to say. But you also have a system that can predict what people are going to say. And we all have our own opinions. We all have our own ideas about what's going on in our lives. But we all have our own biases.
So I think that the way we think about the future is important. And I think that if you have a system that can predict what people are going to say, you have a system that can predict what
5.Write a short story about a robot mouse in a smart city

=== 生成結果 3 ===
Write a short story about a robot mouse in a smart city.
The story is short, and we're trying to tell the story as a reader. The robot mouse is a really cool, futuristic, and interesting character. The story will be about robots and the future of civilization. We want to make sure that it's not just about the robot mouse, but also about the robots themselves. We want to tell a story of robots as people, not just humans.
What's your favorite story you've written?
I think it's the story of the robot mouse, the human mouse.
What's your favorite story you've written that is a little different?
I love the fact that we're just trying to tell a story of people. The story is about humans and robots.
What's your favorite story you've written that is different?
I love the fact that we're just trying to tell a story of people. The story is about humans and robots. I think it's very, very cool.
What's your favorite story you've written that is different?
I love the fact that we're just trying to tell a story of people. The story is about humans and robots.
What's your favorite story you've written that is different?
6.You can find your API key in your browser here: https://wandb.ai/authorize?ref=models


7. 建 一 個 小 小 自 製 資 料 集 ( 例 如 : 標 記 0 = 負 面 、 1 = 正 面 ) 。 用 D i s t i l B E R T 做 分 類 微
調 。
a. 安裝套

b. 建立一個 型 資料小 訓練 集

c. 入 先 的載 事 訓練好 BERT 類 型模 與 tokenizer

d. 建立 型 設模 與訓練 定

e. 開始訓練

f. 試 型 果測 模 效

