Trinity-RFT
Examples
Quick Start
Off-Policy RFT
Asynchronous RFT
Multi-Turn RFT
Offline DPO and SFT
Data Processing
Guidelines
Developer Guide
Configuration Guide
Algorithm Development
FAQ
FAQ
API Reference
trinity.buffer package
trinity.explorer package
trinity.trainer package
trinity.algorithm package
Subpackages
Submodules
trinity.algorithm.algorithm module
trinity.algorithm.algorithm_manager module
trinity.algorithm.key_mapper module
trinity.algorithm.utils module
Module contents
trinity.manager package
trinity.common package
trinity.utils package
Trinity-RFT
trinity.algorithm package
trinity.algorithm.key_mapper module
Edit on GitHub
trinity.algorithm.key_mapper module
Key Mapper
class
trinity.algorithm.key_mapper.
KeyMapper
(
to_trinity_map
:
Dict
[
str
,
str
]
)
[source]
Bases:
object
__init__
(
to_trinity_map
:
Dict
[
str
,
str
]
)
[source]
to_trinity
(
key
:
str
)
→
str
[source]
from_trinity
(
key
:
str
)
→
str
[source]
Other Versions
v: v0.2.0
Tags
v0.1.0
v0.1.1
v0.2.0
v0.2.1
Branches
main
(latest)