{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from huggingface_hub import HfApi\n", "\n", "api = HfApi()\n", "\n" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "RepoUrl('https://huggingface.co/wassname/llama-3-2-1b-sft', endpoint='https://huggingface.co', repo_type='model', repo_id='wassname/llama-3-2-1b-sft')" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "api.create_repo(\n", " # folder_path=\"/workspace/checkpoints_new/llama-3-2-1b-sft\",\n", " repo_id=\"wassname/llama-3-2-1b-sft\",\n", " repo_type=\"model\",\n", ")" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\n", "Upload 10 LFS files: 0%| | 0/10 [00:00