Skip to content

Starcoder output is noise (output gibberish) ( not use model.safetensors) #665

@rootmq

Description

@rootmq
from vllm import LLM, SamplingParams

model_path = "starcoderbase-1b"
llm = LLM(model_path)
sampling_params = SamplingParams(temperature=0, top_p=1, best_of=1, top_k=-1)

text = "def main():"
output = llm.generate(text, use_tqdm=False)
print(output[0].outputs[0].text)

got the gibberish outpus:


    "$GETEventArgs images (as 
(col-% http=  
  
http

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