---
title: webnovel_qwen3_4b
canonical_url: "https://www.modelscope.cn/models/HeteroCat/webnovel_qwen3_4b"
md_url: "https://www.modelscope.cn/models/HeteroCat/webnovel_qwen3_4b.md"
repository: HeteroCat/webnovel_qwen3_4b
chinese_name: qwen3-4b-webnovel
last_updated: 2025-12-11
model_type:
  - qwen3
architectures:
  - Qwen3ForCausalLM
parameters: 1.5B
tensor_type:
  - F16
library_name:
  - pytorch
  - transformer
  - lora
  - safetensors
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 223
stars: 1
tags:
  - qwen
  - qwen3
  - 4b
  - text-generation
  - webnovel
  - chinese
  - lora
  - finetuned
---

# webnovel_qwen3_4b

> webnovel_qwen3_4b - HeteroCat 在 ModelScope 开源的模型。这是一个基于Qwen3-4B-Instruct模型，使用中文网络小说数据进行微调的文本生成模型。

HeteroCat/webnovel_qwen3_4b 是 ModelScope 魔搭社区上的 1.5B 参数机器学习模型，可用 deploy_task text/emb、lmdeploy_turbomind 0.9.1、sglang 0.5.2 部署。

- **Repository**: HeteroCat/webnovel_qwen3_4b
- **Parameters**: 1.5B
- **Inference backends**: deploy_task text/emb, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: qwen, qwen3, 4b, text-generation, webnovel, chinese, lora, finetuned
- **Downloads**: 223
- **Stars**: 1
- **Last updated**: 2025-12-11

Source: https://www.modelscope.cn/models/HeteroCat/webnovel_qwen3_4b

---

# Webnovel Qwen3-4B

## Model Description

这是一个基于Qwen3-4B-Instruct模型，使用中文网络小说数据进行微调的文本生成模型。

## Intended Uses & Limitations

这个模型专门针对网络小说创作进行了优化，适合以下场景：

**主要用途：**
- 网络小说辅助创作
- 故事情节发展
- 角色对话生成
- 场景环境描写

**限制：**
- 不适合作为通用问答模型
- 长文本连贯性有待改进
- 创造性需要进一步提升

## How to Use

### Direct Usage (Recommended)
```python
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("HeteroCat/HeteroCat/webnovel_qwen3_4b")
tokenizer = AutoTokenizer.from_pretrained("HeteroCat/HeteroCat/webnovel_qwen3_4b")
```

### Inference Code Example
```python
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained(
    "HeteroCat/HeteroCat/webnovel_qwen3_4b",
    torch_dtype=torch.float16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("HeteroCat/HeteroCat/webnovel_qwen3_4b")

# Example prompt
prompt = "写一段修仙小说："
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")

# Generate
with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=512,
        temperature=0.7,
        top_p=0.95,
        repetition_penalty=1.1,
        do_sample=True
    )

result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
```

## Training Details

- **Base Model**: Qwen3-4B-Instruct-2507
- **Training Framework**: LLaMA-Factory
- **Training Data**: 网络小说数据集
- **Training Tokens**: 约50K
- **Training Epochs**: 2
- **Training Loss**: 2.9098
- **Batch Size**: 2
- **Learning Rate**: 2e-5
- **Optimizer**: AdamW
- **Weight Decay**: 0.01

## Evaluation Results

在10个不同题材的测试中：

- **总体平均分**: 2.88/5.0
- **最佳表现**: 玄幻题材（3.40/5.0）
- **最差表现**: 对话生成（2.20/5.0）
- **流畅度**: 5.00/5.0（优秀）
- **连贯性**: 4.00/5.0（良好）
- **创造性**: 1.20/5.0（需要改进）

## Hardware Requirements

- **GPU Memory**: ~16GB
- **Disk Space**: ~15GB
- **Supports**: CUDA

## Ethical Considerations

模型训练时使用了经过筛选的网络小说数据，但请注意：

1. 避免生成有害内容
2. 尊重版权和知识产权
3. 负责任地使用AI生成内容
4. 标注AI生成内容的来源

## Contact

For issues or questions regarding this model, please contact through the ModelScope platform.

---
*Model Card Created*: 2025-12-11 09:58:00
