docs: init readthedocs support (#783)

This commit is contained in:
Yineng Zhang
2024-07-28 16:50:31 +10:00
committed by GitHub
parent 68e5262699
commit 948625799e
16 changed files with 246 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ def gen(
choices: Optional[List[str]] = None,
regex: Optional[str] = None,
):
"""Call the model to generate. See the meaning of the arguments in docs/sampling_params.md"""
"""Call the model to generate. See the meaning of the arguments in docs/en/sampling_params.md"""
if choices:
return SglSelect(name, choices, 0.0 if temperature is None else temperature)

View File

@@ -410,7 +410,7 @@ class SglGen(SglExpr):
dtype: Optional[type] = None,
regex: Optional[str] = None,
):
"""Call the model to generate. See the meaning of the arguments in docs/sampling_params.md"""
"""Call the model to generate. See the meaning of the arguments in docs/en/sampling_params.md"""
super().__init__()
self.name = name
self.sampling_params = SglSamplingParams(