from huggingface_hub import HfApi api = HfApi() model_id = "Stefan171/TinyLlama-QuantumQuill-chat-12-05-24" # Path to the safetensors model file safetensors_path = "./model.safetensors" # Upload the safetensors model api.upload_file( path_or_fileobj=safetensors_path, path_in_repo="model.safetensors", repo_id=model_id, repo_type="model" ) # Path to the tokenizer folder (current directory) tokenizer_path = "./" # Upload the tokenizer files api.upload_folder( folder_path=tokenizer_path, path_in_repo="tokenizer", repo_id=model_id, repo_type="model" )