> For the complete documentation index, see [llms.txt](https://axolotl.continuumlabs.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://axolotl.continuumlabs.pro/axolotl-configuration-files/model-configuration.md).

# Model Configuration

| Field Name                       | Description                                                                                                |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `base_model`                     | Specifies the Hugging Face model or its path containing model files (`*.pt`, `*.safetensors`, or `*.bin`). |
| `base_model_ignore_patterns`     | Allows specifying an ignore pattern for model files in the repository.                                     |
| `base_model_config`              | Location of the configuration `.json` file if not included in the base model repository.                   |
| `model_revision`                 | Specifies a specific model revision from Hugging Face's hub.                                               |
| `tokenizer_config`               | Optional override for the tokenizer configuration, different from the base model.                          |
| `model_type`                     | Defines the type of model to load, e.g., `AutoModelForCausalLM`.                                           |
| `tokenizer_type`                 | Corresponding tokenizer type, e.g., `AutoTokenizer`.                                                       |
| `trust_remote_code`              | Allows trusting remote code for untrusted sources.                                                         |
| `tokenizer_use_fast`             | Indicates whether to use the `use_fast` option for tokenizer loading.                                      |
| `tokenizer_legacy`               | Specifies whether to use the legacy tokenizer setting.                                                     |
| `resize_token_embeddings_to_32x` | Resizes model embeddings to multiples of 32 when new tokens are added.                                     |
| `is_falcon_derived_model`        | Boolean flag indicating if the model is derived from Falcon.                                               |
| `is_llama_derived_model`         | Boolean flag indicating if the model is derived from Llama.                                                |
| `is_mistral_derived_model`       | Boolean flag indicating if the model is derived from Mistral.                                              |
| `model_config`                   | Optional overrides for the base model configuration, including RoPE Scaling settings.                      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://axolotl.continuumlabs.pro/axolotl-configuration-files/model-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
