Unable to call this model

#70
by Abhi012024 - opened

Getting below error:
ValidationError: 1 validation error for HuggingFaceEndpoint root Parameters {'temperature', 'repetition_penalty', 'top_k', 'max_new_tokens'} should be specified explicitly. Instead they were passed in as part of model_kwargs parameter. (type=value_error)

someone pls. help me out on this.

Pass them separately like this -

  HuggingFaceEndpoint(
          repo_id=repo_id,
          temperature= 0.8,
          top_k =50,
          huggingfacehub_api_token= ' API '
       )

Sign up or log in to comment