thiswillbeyourgithub commited on
Commit
4dc84c7
·
1 Parent(s): 1b167c3

docs: mention quantization example for env variable

Browse files
src/faster_whisper_server/config.py CHANGED
@@ -170,7 +170,7 @@ class Config(BaseSettings):
170
 
171
  Pydantic will automatically handle mapping uppercased environment variables to the corresponding fields.
172
  To populate nested, the environment should be prefixed with the nested field name and an underscore. For example,
173
- the environment variable `LOG_LEVEL` will be mapped to `log_level`, `WHISPER__MODEL`(note the double underscore) to `whisper.model`, etc.
174
  """ # noqa: E501
175
 
176
  model_config = SettingsConfigDict(env_nested_delimiter="__")
 
170
 
171
  Pydantic will automatically handle mapping uppercased environment variables to the corresponding fields.
172
  To populate nested, the environment should be prefixed with the nested field name and an underscore. For example,
173
+ the environment variable `LOG_LEVEL` will be mapped to `log_level`, `WHISPER__MODEL`(note the double underscore) to `whisper.model`, to set quantization to int8, use `WHISPER__COMPUTE_TYPE=int8`, etc.
174
  """ # noqa: E501
175
 
176
  model_config = SettingsConfigDict(env_nested_delimiter="__")