I want to deploy huggingface model on azure ml.
- I am using azure ml notebook to run the below code.
- I don’t want to use azure model catalog. I dont want to use huggingface inference endpoint and not API.
- I want have loaded the model and save the model using pretrained fucntion.
I want to register the model and using the same model.
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
model = AutoModelForCausalLM.from_pretrained(pretrained_model_name_or_path ="mistralai/Mistral-7B-Instruct-v0.1",
cache_dir="./mistralmodel/",
force_download=False,
resume_download=False,
trust_remote_code =False)
tokenizer = AutoTokenizer.from_pretrained("./mistralmodel/")
How can I do this please help me.