Downloads · 30 days
11
22% of all-time downloads
gwenweng/gemma
gemma is a machine learning model from gwenweng. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
--- license: mit datasets: - allenai/real-toxicity-prompts language: - en pipelinetag: text-generation tags: - controllable-generation - toxicity-reduction - hmm - language-model ---
Downloads · 30 days
11
22% of all-time downloads
All-time downloads
51
Public
Parameters
1.1B
4.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.3 GB · 100%
From the Hugging Face model README
license: mit datasets:
This is the pre-trained Hidden Markov Model used in the TRACE (Tractable Reasoning for Adaptable Controllable gEneration) paper for controllable text generation with toxicity reduction.
from huggingface_hub import snapshot_download
# Download the model
model_path = snapshot_download(
repo_id="gwenweng/gemma",
local_dir="models/gemma"
)
# Use with TRACE
# See: https://github.com/yidouweng/trace
Citation
@inproceedings{weng2025trace,
title={TRACE Back from the Future: A Probabilistic Reasoning Approach to Controllable
Language Generation},
author={Weng, Yidou and Wang, Benjie and Van den Broeck, Guy},
booktitle={Proceedings of the 42nd International Conference on Machine Learning
(ICML)},
year={2025}
}
License
MIT License - see https://github.com/yidouweng/trace for details.