File size: 685 Bytes
10ddc1e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# DeepSeek V3.2 Message Encoding

This directory contains the message encoding implementation and tests for DeepSeek V3.2.

## Files

- `encoding_dsv32.py` - DeepSeek V3.2 message encoding implementation
- `test_encoding_dsv32.py` - Unit tests for encoding functionality
- `test_input*.json` - Test cases for encoding validation

## Usage

The encoding module is used by the inference implementation to format messages with proper special tokens:

```python
from encoding_dsv32 import encode_messages

messages = [{"role": "user", "content": "Hello"}]
prompt = encode_messages(messages, thinking_mode="chat")
```

See `../inference/README.md` for usage in the full inference pipeline.