CoolFace
Modelpublic

en1ak/ygo-lua-coder

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
Untitled.ipynb69 linesDownload Raw Back to checkpoint-2000
1{2 "cells": [3  {4   "cell_type": "code",5   "execution_count": 10,6   "id": "7208d1dc-06eb-457e-bcf1-fb0d6cc4d39e",7   "metadata": {},8   "outputs": [],9   "source": [10    "import zipfile\n",11    "with zipfile.ZipFile('training_args.bin', 'r') as zip_ref:\n",12    "    zip_ref.extractall('./unzipped_content')"13   ]14  },15  {16   "cell_type": "code",17   "execution_count": 13,18   "id": "6acc7c33-58c2-41af-a2ed-479b77dde45e",19   "metadata": {},20   "outputs": [21    {22     "name": "stdout",23     "output_type": "stream",24     "text": [25      "<__main__.TrainingArguments object at 0x7f20c437c8b0>\n"26     ]27    }28   ],29   "source": [30    "import pickle\n",31    "class TrainingArguments:\n",32    "    pass\n",33    "with open('./unzipped_content/training_args/data.pkl', 'rb') as f:\n",34    "    data = pickle.load(f)\n",35    "print(data)"36   ]37  },38  {39   "cell_type": "code",40   "execution_count": null,41   "id": "59e6f842-4e9f-497b-a2ae-6c972782aabb",42   "metadata": {},43   "outputs": [],44   "source": []45  }46 ],47 "metadata": {48  "kernelspec": {49   "display_name": "Python 3 (ipykernel)",50   "language": "python",51   "name": "python3"52  },53  "language_info": {54   "codemirror_mode": {55    "name": "ipython",56    "version": 357   },58   "file_extension": ".py",59   "mimetype": "text/x-python",60   "name": "python",61   "nbconvert_exporter": "python",62   "pygments_lexer": "ipython3",63   "version": "3.10.8"64  }65 },66 "nbformat": 4,67 "nbformat_minor": 568}69