Skip to content

Demo code from readme fails #290

@rain-1

Description

@rain-1

I get this error:

  File "/home/ubuntu/code/Orpheus-TTS/./a.py", line 5, in <module>
    model = OrpheusModel(model_name ="canopylabs/orpheus-tts-0.1-finetune-prod", max_model_len=2048)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: OrpheusModel.__init__() got an unexpected keyword argument 'max_model_len'

deleting , max_model_len=2048 allowed the code to progress.

but then I got this crash:

[rank0]: Traceback (most recent call last):
[rank0]:   File "/home/ubuntu/code/Orpheus-TTS/./a.py", line 5, in <module>
[rank0]:     model = OrpheusModel(model_name ="canopylabs/orpheus-tts-0.1-finetune-prod")
[rank0]:             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
[rank0]: ValueError: The model's max seq len (131072) is larger than the maximum number of tokens that can be stored in KV cache (62896). Try increasing `gpu_memory_utilization` or decreasing `max_model_len` when initializing the engine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions