Hf-inference reports an error for my model after Inference was enabled A model hosted on Hugging Face's serverless Inference API fails its health check when its README.md declares the `translation` pipeline tag for a `LlamaForCausalLM` architecture, because the `transformers` translation pipeline expects encoder-decoder (Seq2Seq) models while Llama is decoder-only. The fix is to change the YAML frontmatter pipeline tag to `text-generation`, which lets the Inference API load the model with `AutoModelForCausalLM`; translation can still be done by sending custom instruction prompts and special tokens to the text generation endpoint. The hf-inference error occurs because the LlamaForCausalLM architecture is incompatible with the translation pipeline tag. In the transformers library, the translation pipeline is designed for encoder-decoder Seq2Seq architectures. Since Llama is a decoder-only causal language model, the serverless Inference API fails when it attempts to initialize the weights inside a translation pipeline during the health check. To fix this, update the YAML frontmatter in your repository’s README.md to use the text-generation pipeline tag. The Inference API will then correctly load the model using AutoModelForCausalLM . You can still perform translation by passing your custom instruction prompts and special tokens directly to the text generation endpoint.