File size: 725 Bytes
35b53c2
 
 
 
 
 
 
 
 
 
 
 
 
 
f06334f
 
 
 
 
 
 
 
 
 
 
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
---
title: Ernie 4.5 Logprob Compare
emoji: 🐒
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 5.41.0
app_file: app.py
pinned: false
license: mit
short_description: Compare the output of ERNIE-4.5-0.3B Instruct and Base model
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# πŸ” ERNIE 4.5 LogProb Compare

This demo compares two ERNIE 4.5 models β€” `baidu/ERNIE-4.5-0.3B-PT` and `baidu/ERNIE-4.5-0.3B-Base-PT` β€” on the same input sentence.

For each token, the app displays:
- Token-wise log probabilities
- Top-k predicted tokens (with probability)
- Total sentence log probability

Useful for debugging, evaluation, or teaching language model internals.