def METHOD_NAME(path: str) -> HuggingFaceLocalModelConfig:
    """Register a AutoModelForCausalLM model from a local directory for later use.
    path: a path to your HF model"""
    config = HuggingFaceLocalModelConfig.from_path(path)
    if config.model_id in _huggingface_model_registry:
        raise ValueError(f"A Hugging Face model is already registered for model_id {config.model_id}")
    _huggingface_model_registry[config.model_id] = config
    if config.model_name in MODEL_NAME_TO_MODEL:
        raise ValueError(f"A HELM model is already registered for model name: {config.model_name}")
    model = Model(
        group="huggingface",
        name=config.model_id,
        tags=[TEXT_MODEL_TAG, FULL_FUNCTIONALITY_TEXT_MODEL_TAG, LOCAL_HUGGINGFACE_MODEL_TAG],
    )
    MODEL_NAME_TO_MODEL[config.model_id] = model
    ALL_MODELS.append(model)
    hlog(f"Registered Hugging Face model: {model} config: {config}")
    return config