---
title: Llama3.1-8b-zh
canonical_url: "https://www.modelscope.cn/models/Muulor/Llama3.1-8b-zh"
md_url: "https://www.modelscope.cn/models/Muulor/Llama3.1-8b-zh.md"
repository: Muulor/Llama3.1-8b-zh
chinese_name: "Llama-3.1-8B 中文模型"
last_updated: 2024-08-18
license: llama3.1
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - llama
architectures:
  - LlamaForCausalLM
base_model:
  - meta-llama/Meta-Llama-3.1-8B-Instruct
base_model_relation: finetune
parameters: 8.0B
tensor_type:
  - BF16
library_name:
  - safetensors
language:
  - en
  - zh
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 223
stars: 3
tags:
  - llama-factory
  - finetune
---

# Llama3.1-8b-zh

> Llama3.1-8b-zh - Muulor 在 ModelScope 开源的模型。基于Meta-Llama-3.1-8B-Instruct，自建少量数据进行Qlora 8bit微调，中英文数据搭配避免影响模型能力与导致原知识遗忘，泛化能力良好。

Muulor/Llama3.1-8b-zh 是 ModelScope 魔搭社区上的 8.0B 参数text-generation模型，采用 llama3.1 许可，基于 meta-llama/Meta-Llama-3.1-8B-Instruct 构建，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: Muulor/Llama3.1-8b-zh
- **License**: llama3.1
- **Tasks**: text-generation
- **Parameters**: 8.0B
- **Base model**: meta-llama/Meta-Llama-3.1-8B-Instruct
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: llama-factory, finetune
- **Downloads**: 223
- **Stars**: 3
- **Last updated**: 2024-08-18

Source: https://www.modelscope.cn/models/Muulor/Llama3.1-8b-zh

---

# 模型简介

基于Meta-Llama-3.1-8B-Instruct，自建少量数据进行Qlora 8bit微调，中英文数据搭配避免影响模型能力与导致原知识遗忘，泛化能力良好。


# 使用建议

Tramsformer当前使用版本是 4.43.1

为保证模型能力，转gguf格式的模板建议遵循Llama3模板：

TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>

{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>

{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>

{{ .Response }}<|eot_id|>"""
PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|eot_id|>"
PARAMETER stop "<|reserved_special_token"

默认参数建议：
temperature 0.6
top_p 0.9
