Jackie_Chen commited on
Commit
8c652ee
·
verified ·
1 Parent(s): 3533b41

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -1
README.md CHANGED
@@ -5,4 +5,47 @@ language:
5
  base_model:
6
  - unsloth/Qwen3.6-27B-MTP-GGUF
7
  pipeline_tag: text-classification
8
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  base_model:
6
  - unsloth/Qwen3.6-27B-MTP-GGUF
7
  pipeline_tag: text-classification
8
+ ---
9
+
10
+ # Test-SMALL-Model
11
+
12
+ 本模型是一个基于 `unsloth/Qwen3.6-27B-MTP-GGUF` 进行微调的文本分类(Text Classification)模型,主要针对中文文本进行优化。
13
+
14
+ ## 模型简介
15
+
16
+ * **模型类型:** 文本分类 (Text Classification)
17
+ * **基础模型:** unsloth/Qwen3.6-27B-MTP-GGUF
18
+ * **训练语言:** 中文 (Chinese)
19
+ * **许可证:** Apache 2.0
20
+
21
+ ## 使用场景
22
+
23
+ 本模型适用于以下中文文本分类任务:
24
+ - [例如:情感分析(正向/负向分类)]
25
+ - [例如:新闻文本主题分类]
26
+ - [例如:意图识别与垃圾文本过滤]
27
+
28
+ ## 如何使用
29
+
30
+ 你可以使用 Transformers 库来加载并使用该模型。以下是一个简单的推理示例:
31
+
32
+ ```python
33
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
34
+ import torch
35
+
36
+ # 加载模型和分词器
37
+ model_name = "ChenXiangXi/Test-SMALL-Model"
38
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
39
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
40
+
41
+ # 准备输入文本
42
+ text = "需要进行分类的中文文本示例"
43
+ inputs = tokenizer(text, return_tensors="pt")
44
+
45
+ # 模型推理
46
+ with torch.no_grad():
47
+ outputs = model(**inputs)
48
+ logits = outputs.logits
49
+ predicted_class_id = logits.argmax().item()
50
+
51
+ print(f"预测类别 ID: {predicted_class_id}")