While following through our tutorials, you might have had questions regarding the details of the requirements and specifications. We have listed out the frequently asked questions as a separate document.
Required | Filename | Description |
---|---|---|
Yes | safetensors | Model weight, e.g. model.safetensors. Use model.safetensors.index.json for split safetensors files |
Yes | config.json | Model config that includes the architecture. (Supported Models on Friendli) |
No | tokenizer.json | Tokenizer for the model |
No | tokenizer_config.json | Tokenizer config. This should be present & have a chat_template field for the Friendli Engine to provide chat APIs |
No | special_tokens_map.json |
tokenizer_config.json
of mistralai/Mistral-7B-Instruct-v0.2
is a template that repeats the messages of a user and an assistant.
Concretely, each row in the “messages” field should follow a format like: [{"role": "user", "content": "The 1st user's message"}, {"role": "assistant", "content": "The 1st assistant's message"}]
.
In this case, HuggingFaceH4/ultrachat_200k
is a dataset that is compatible with the chat template.org/project/artifact_id:version