{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "97b75243-8761-4ad8-a5f6-7e5d1ac6f8f3", "metadata": {}, "outputs": [], "source": [ "from huggingface_hub import HfApi\n", "\n", "api = HfApi()\n", "\n", "# Upload all the content from the local folder to your remote Space.\n", "# By default, files are uploaded at the root of the repo\n", "def upload():\n", " api.upload_folder(\n", "\n", " folder_path=r\"/workspace/axolotl/relora-out-v2\",\n", "\n", " repo_id=\"nRuaif/HH2-Kimiko\",\n", "\n", " repo_type=\"model\",\n", "\n", ")" ] }, { "cell_type": "code", "execution_count": null, "id": "8f4fe9f8-96a6-42d6-bb0b-88f161d83e5d", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Uploading...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "9d088087e216404399529670c7847308", "version_major": 2, "version_minor": 0 }, "text/plain": [ "model-00001-of-00003.safetensors: 0%| | 0.00/9.95G [00:00