Skip to content

Commit

Permalink
Fixed docstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Oct 2, 2024
1 parent acf40d9 commit 8175146
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ols/src/llms/providers/azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AzureOpenAI(LLMProvider):

@property
def default_params(self) -> dict[str, Any]:
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
self.url = str(self.provider_config.url or self.url)
self.credentials = self.provider_config.credentials
deployment_name = self.provider_config.deployment_name
Expand Down
2 changes: 1 addition & 1 deletion ols/src/llms/providers/bam.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BAM(LLMProvider):

@property
def default_params(self) -> dict[str, Any]:
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
return {
"decoding_method": "sample",
"max_new_tokens": 512,
Expand Down
2 changes: 1 addition & 1 deletion ols/src/llms/providers/fake_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FakeProvider(LLMProvider):

@property
def default_params(self) -> dict[str, Any]:
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
return {}

def load(self) -> LLM:
Expand Down
2 changes: 1 addition & 1 deletion ols/src/llms/providers/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class OpenAI(LLMProvider):

@property
def default_params(self) -> dict[str, Any]:
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
self.url = str(self.provider_config.url or self.url)
self.credentials = self.provider_config.credentials
# provider-specific configuration has precendence over regular configuration
Expand Down
2 changes: 1 addition & 1 deletion ols/src/llms/providers/rhelai_vllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RHELAIVLLM(LLMProvider):

@property
def default_params(self) -> dict[str, Any]:
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
self.url = str(self.provider_config.url or self.url)
self.credentials = self.provider_config.credentials
# provider-specific configuration has precendence over regular configuration
Expand Down
2 changes: 1 addition & 1 deletion ols/src/llms/providers/rhoai_vllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RHOAIVLLM(LLMProvider):

@property
def default_params(self) -> dict[str, Any]:
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
self.url = str(self.provider_config.url or self.url)
self.credentials = self.provider_config.credentials
# provider-specific configuration has precendence over regular configuration
Expand Down
2 changes: 1 addition & 1 deletion ols/src/llms/providers/watsonx.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Watsonx(LLMProvider):

@property
def default_params(self) -> dict[str, Any]:
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
# https://www.ibm.com/docs/en/watsonx-as-a-service?topic=models-parameters
return {
GenParams.DECODING_METHOD: "sample",
Expand Down
6 changes: 3 additions & 3 deletions scripts/evaluation/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class OpenAIVanilla(OpenAI):

@property
def default_params(self):
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
self.url = str(self.provider_config.url)
self.credentials = self.provider_config.credentials
# provider-specific configuration has precendence over regular configuration
Expand All @@ -34,7 +34,7 @@ class AzureOpenAIVanilla(AzureOpenAI):

@property
def default_params(self):
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
self.url = str(self.provider_config.url or self.url)
self.credentials = self.provider_config.credentials
deployment_name = self.provider_config.deployment_name
Expand Down Expand Up @@ -71,7 +71,7 @@ class WatsonxVanilla(Watsonx):

@property
def default_params(self):
"""Default LLM params."""
"""Construct and return structure with default LLM params."""
return {
GenTextParamsMetaNames.MAX_NEW_TOKENS: 1024,
}
Expand Down

0 comments on commit 8175146

Please sign in to comment.