File size: 876 Bytes
d91766b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Get Started

Start here if you want the shortest path to using Diffulex.

## Engine

The core engine is constructed from a local model directory:

```python
from diffulex import Diffulex

llm = Diffulex(
    model_path="/YOUR-CKPT-PATH/your-model",
    model_name="your_model_name",
    decoding_strategy="d2f",
    mask_token_id=151666,
)
```

## Benchmark

Use `diffulex_bench` to run evaluation jobs:

```bash
python -m diffulex_bench.main --config diffulex_bench/configs/example.yml
```

For model-specific benchmark launch patterns, see the [Cookbook](../cookbook/index.md).

## Server

Use the HTTP server when you want to serve requests interactively:

```bash
python -m diffulex.server.launch --model /YOUR-CKPT-PATH/your-model --model-name your_model_name
```

For server launch patterns and the Streamlit sample frontend, see the [Cookbook](../cookbook/index.md).