Views
No views yet
1from transformers import pipeline
2
3pipe = pipeline("text-classification", model="rushilJariwala/bert-base-cased-paraphrase-classification")
4
5sequences = [
6 "I've been waiting for a HuggingFace course my whole life.",
7 "This course is amazing!",
8]
9
10result = pipe(sequences)
11print(result)
12
13
14#### Preprocessing
15The text was tokenized using BERT's cased tokenizer with truncation and padding.
16
17#### Training Hyperparameters
18
19- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
20- Batch Size: 8
21- Learning Rate: 5e-5
22- Optimizer: AdamW
23- Number of Epochs: 3
24
25#### Testing Data
26
27The model was evaluated on the MRPC validation set.
28#### Metrics
29
30Accuracy: 86.27%
31
32#### Summary
33
34The model achieved an accuracy of 86.27% on the MRPC validation set.
35
36