Download server.py from tykiww/lora_instruction_tuning: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/spaces/tykiww/lora_instruction_tuning/resolve/main/server.py
- Command line
-
hf download hf://spaces/tykiww/lora_instruction_tuning/server.py
-
curl -L -o server.py https://huggingface.co/spaces/tykiww/lora_instruction_tuning/resolve/main/server.py
255 Bytes
| def submit_weights(model, repository, model_out_name, token): | |
| """submits model to repository""" | |
| repo = repository + '/' + model_out_name | |
| model.push_to_hub(repo, token = token) | |
| tokenizer.push_to_hub(repo, token = token) | |
| return 0 | |