How to convert llama Model (meta-llama/Llama-3.2-1B) to .mar file

Hi
I am new to ML. I would like to convert meta-llama/Llama-3.2-1B to .mar file. (to import to later on to gcp model registry).
I have see the docs of torch-model-archiver but still not sure of how that should be done. This is the model structure:
├── LICENSE.txt
├── README.md
├── USE_POLICY.md
├── config.json
├── generation_config.json
├── model.safetensors
├── original
│ ├── consolidated.00.pth
│ ├── params.json
│ └── tokenizer.model
├── special_tokens_map.json
├── tokenizer.json
└── tokenizer_config.json

I am not sure what should I supply for the --model-file and --handler
Thanks

1 Like

It seems to be an unsolved issue. It looks like it could be used as it is…