transformers safetensors internlm2 feature-extraction custom_code zh dataset:CAS-SIAT-XinHai/CPsyCoun arxiv:2405.16433 base_model:internlm/internlm2-chat-7b base_model:finetune:internlm/internlm2-chat-7b license:apache-2.0 region:us
---
base_model: internlm/internlm2-chat-7b
datasets:
- CAS-SIAT-XinHai/CPsyCoun
language:
- zh
license: apache-2.0
---

# CPsyCounX

This model is a fine-tuned version of [internlm/internlm2-chat-7b](https://huggingface.co/internlm/internlm2-chat-7b) on the [CPsyCounD](https://huggingface.co/datasets/CAS-SIAT-XinHai/CPsyCoun) dataset.

## Model description

**CPsyCounX** is a large language model designed for Chinese Psychological Counseling. Paper: [CPsyCoun](https://arxiv.org/abs/2405.16433).

## Training and evaluation data

- Train: [CPsyCounD](https://huggingface.co/datasets/CAS-SIAT-XinHai/CPsyCoun) 
- Evaluate: [CPsyCounE](https://github.com/CAS-SIAT-XinHai/CPsyCoun/tree/main/CPsyCounE)

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 1e-06
- train_batch_size: 4
- eval_batch_size: 8
- seed: 42
- distributed_type: multi-GPU
- num_devices: 4
- gradient_accumulation_steps: 28
- total_train_batch_size: 448
- total_eval_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- num_epochs: 9.0
- mixed_precision_training: Native AMP

### Framework versions

- Transformers 4.37.1
- Pytorch 2.1.2+cu121
- Datasets 2.16.1
- Tokenizers 0.15.1