def METHOD_NAME(input: str) -> str:
    _model, _tokenizer = load_model_and_tokenizer("bloom-4bit")
    encode_input = _tokenizer.encode(input, return_tensors="pt").to(gpu_device)
    generated_ids = _model.generate(
        encode_input,
        do_sample=True,
        min_length=min_length,
        max_length=max_length,
        top_p=top_p,
        temperature=temperature,
    )
    output = _tokenizer.decode([el.item() for el in generated_ids[0]])
    output = output[len(input) :]
    if output.endswith("</s>"):
        output = output[: -len("</s>")]
    return output