mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-09-09 01:17:01 +08:00
[Misc]: Typo fix: Renaming classes (casualLM -> causalLM) (#9801)
Signed-off-by: Yannick Schnider <Yannick.Schnider1@ibm.com>
This commit is contained in:
parent
0f43387157
commit
0ce7798f44
@ -37,7 +37,7 @@ _NEURON_SUPPORTED_MODELS: Dict[str, Tuple[str, str, str]] = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class NeuronCasualLM(nn.Module):
|
class NeuronCausalLM(nn.Module):
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
config: PretrainedConfig,
|
config: PretrainedConfig,
|
||||||
@ -184,7 +184,7 @@ def get_neuron_model(model_config: ModelConfig,
|
|||||||
scheduler_config: SchedulerConfig) -> nn.Module:
|
scheduler_config: SchedulerConfig) -> nn.Module:
|
||||||
|
|
||||||
# Create a model instance.
|
# Create a model instance.
|
||||||
model = NeuronCasualLM(
|
model = NeuronCausalLM(
|
||||||
model_config.hf_config,
|
model_config.hf_config,
|
||||||
_is_neuron_on_device_sampling_disabled(model_config))
|
_is_neuron_on_device_sampling_disabled(model_config))
|
||||||
|
|
||||||
|
|||||||
@ -95,7 +95,7 @@ def _require_model_export(model_id, revision=None, subfolder=None):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class OpenVINOCasualLM(nn.Module):
|
class OpenVINOCausalLM(nn.Module):
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@ -199,5 +199,5 @@ def get_model(
|
|||||||
"be added in the future. If this is important to you, "
|
"be added in the future. If this is important to you, "
|
||||||
"please open an issue on github.")
|
"please open an issue on github.")
|
||||||
|
|
||||||
return OpenVINOCasualLM(ov_core, model_config, device_config,
|
return OpenVINOCausalLM(ov_core, model_config, device_config,
|
||||||
kv_cache_dtype)
|
kv_cache_dtype)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user