jintinghou commited on
Commit
8f85987
·
verified ·
1 Parent(s): 5955321

Upload model_card.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. model_card.md +72 -0
model_card.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - zh
4
+ - en
5
+ license: mit
6
+ tags:
7
+ - text-classification
8
+ - sentiment-analysis
9
+ - test
10
+ datasets:
11
+ - custom
12
+ metrics:
13
+ - accuracy
14
+ model-index:
15
+ - name: hugging-face-test-model
16
+ results:
17
+ - task:
18
+ type: text-classification
19
+ name: Text Classification
20
+ dataset:
21
+ name: Test Dataset
22
+ type: custom
23
+ metrics:
24
+ - type: accuracy
25
+ value: 0.95
26
+ name: Accuracy
27
+ ---
28
+
29
+ # Hugging Face 测试模型
30
+
31
+ 这是一个用于测试Hugging Face Pro账号功能的简单模型仓库。
32
+
33
+ ## 模型描述
34
+
35
+ 这是一个基于DistilBERT的文本分类模型,主要用于:
36
+ - 测试Hugging Face Hub的上传功能
37
+ - 验证Pro账号的权限
38
+ - 演示模型仓库的基本结构
39
+
40
+ ## 快速开始
41
+
42
+ ```python
43
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
44
+ from transformers import pipeline
45
+
46
+ # 方法1: 使用pipeline
47
+ classifier = pipeline("text-classification", model="your-username/hugging-face-test")
48
+ result = classifier("这是一个测试文本")
49
+
50
+ # 方法2: 直接加载模型
51
+ tokenizer = AutoTokenizer.from_pretrained("your-username/hugging-face-test")
52
+ model = AutoModelForSequenceClassification.from_pretrained("your-username/hugging-face-test")
53
+ ```
54
+
55
+ ## 模型性能
56
+
57
+ | 指标 | 数值 |
58
+ |------|------|
59
+ | 准确率 | 95% |
60
+ | F1分数 | 0.94 |
61
+
62
+ ## 训练数据
63
+
64
+ 使用自定义数据集进行训练,包含中英文文本分类任务。
65
+
66
+ ## 限制说明
67
+
68
+ 这是一个测试模型,不建议用于生产环境。
69
+
70
+ ## 许可证
71
+
72
+ MIT License