Datasets:

Modalities:
Image
Size:
< 1K
Libraries:
Datasets
License:
derek-thomas HF staff commited on
Commit
141cea5
1 Parent(s): 481c188

Fixed line width

Browse files
blog/multi-lora-serving/multi-lora-serving-pattern.ipynb CHANGED
@@ -3018,24 +3018,28 @@
3018
  },
3019
  {
3020
  "cell_type": "code",
3021
- "execution_count": 21,
3022
  "id": "13d8ee16-65ec-4a32-84e9-e6b99aab92af",
3023
  "metadata": {
3024
  "tags": []
3025
  },
3026
  "outputs": [
3027
  {
3028
- "ename": "KeyboardInterrupt",
3029
- "evalue": "Interrupted by user",
3030
- "output_type": "error",
3031
- "traceback": [
3032
- "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
3033
- "\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)",
3034
- "Cell \u001b[0;32mIn[21], line 3\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mhuggingface_hub\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m HfApi\n\u001b[0;32m----> 3\u001b[0m commit_message_image \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43minput\u001b[39;49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 5\u001b[0m api \u001b[38;5;241m=\u001b[39m HfApi()\n\u001b[1;32m 6\u001b[0m api\u001b[38;5;241m.\u001b[39mupload_file(\n\u001b[1;32m 7\u001b[0m path_or_fileobj\u001b[38;5;241m=\u001b[39mimage_out,\n\u001b[1;32m 8\u001b[0m path_in_repo\u001b[38;5;241m=\u001b[39m\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mblog/multi-lora-serving/\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mimage_out\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m,\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 11\u001b[0m commit_message\u001b[38;5;241m=\u001b[39mcommit_message_image,\n\u001b[1;32m 12\u001b[0m )\n",
3035
- "File \u001b[0;32m~/miniconda/lib/python3.10/site-packages/ipykernel/kernelbase.py:1282\u001b[0m, in \u001b[0;36mKernel.raw_input\u001b[0;34m(self, prompt)\u001b[0m\n\u001b[1;32m 1280\u001b[0m msg \u001b[38;5;241m=\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mraw_input was called, but this frontend does not support input requests.\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 1281\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m StdinNotImplementedError(msg)\n\u001b[0;32m-> 1282\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_input_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 1283\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mstr\u001b[39;49m\u001b[43m(\u001b[49m\u001b[43mprompt\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1284\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_parent_ident\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mshell\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1285\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget_parent\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mshell\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 1286\u001b[0m \u001b[43m \u001b[49m\u001b[43mpassword\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 1287\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n",
3036
- "File \u001b[0;32m~/miniconda/lib/python3.10/site-packages/ipykernel/kernelbase.py:1325\u001b[0m, in \u001b[0;36mKernel._input_request\u001b[0;34m(self, prompt, ident, parent, password)\u001b[0m\n\u001b[1;32m 1322\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m \u001b[38;5;167;01mKeyboardInterrupt\u001b[39;00m:\n\u001b[1;32m 1323\u001b[0m \u001b[38;5;66;03m# re-raise KeyboardInterrupt, to truncate traceback\u001b[39;00m\n\u001b[1;32m 1324\u001b[0m msg \u001b[38;5;241m=\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mInterrupted by user\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m-> 1325\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mKeyboardInterrupt\u001b[39;00m(msg) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[1;32m 1326\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m \u001b[38;5;167;01mException\u001b[39;00m:\n\u001b[1;32m 1327\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mlog\u001b[38;5;241m.\u001b[39mwarning(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mInvalid Message:\u001b[39m\u001b[38;5;124m\"\u001b[39m, exc_info\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m)\n",
3037
- "\u001b[0;31mKeyboardInterrupt\u001b[0m: Interrupted by user"
3038
  ]
 
 
 
 
 
 
 
 
 
 
3039
  }
3040
  ],
3041
  "source": [
@@ -3063,7 +3067,7 @@
3063
  },
3064
  {
3065
  "cell_type": "code",
3066
- "execution_count": 15,
3067
  "id": "adca7ec0-25c3-42e3-84b7-f7f9342e4e4f",
3068
  "metadata": {
3069
  "tags": []
@@ -3073,16 +3077,16 @@
3073
  "name": "stdin",
3074
  "output_type": "stream",
3075
  "text": [
3076
- " Adding better labels\n"
3077
  ]
3078
  },
3079
  {
3080
  "data": {
3081
  "text/plain": [
3082
- "CommitInfo(commit_url='https://huggingface.co/datasets/huggingface/documentation-images/commit/52a273179cafc124fcff900005ccf063de4a8ca6', commit_message='Adding better labels', commit_description='', oid='52a273179cafc124fcff900005ccf063de4a8ca6', pr_url=None, pr_revision=None, pr_num=None)"
3083
  ]
3084
  },
3085
- "execution_count": 15,
3086
  "metadata": {},
3087
  "output_type": "execute_result"
3088
  }
 
3018
  },
3019
  {
3020
  "cell_type": "code",
3021
+ "execution_count": 22,
3022
  "id": "13d8ee16-65ec-4a32-84e9-e6b99aab92af",
3023
  "metadata": {
3024
  "tags": []
3025
  },
3026
  "outputs": [
3027
  {
3028
+ "name": "stdin",
3029
+ "output_type": "stream",
3030
+ "text": [
3031
+ " Fixed line width\n"
 
 
 
 
 
 
3032
  ]
3033
+ },
3034
+ {
3035
+ "data": {
3036
+ "text/plain": [
3037
+ "CommitInfo(commit_url='https://huggingface.co/datasets/huggingface/documentation-images/commit/621a34717b8f174ffc264b32fb96090b3d3434b0', commit_message='Fixed line width', commit_description='', oid='621a34717b8f174ffc264b32fb96090b3d3434b0', pr_url=None, pr_revision=None, pr_num=None)"
3038
+ ]
3039
+ },
3040
+ "execution_count": 22,
3041
+ "metadata": {},
3042
+ "output_type": "execute_result"
3043
  }
3044
  ],
3045
  "source": [
 
3067
  },
3068
  {
3069
  "cell_type": "code",
3070
+ "execution_count": 23,
3071
  "id": "adca7ec0-25c3-42e3-84b7-f7f9342e4e4f",
3072
  "metadata": {
3073
  "tags": []
 
3077
  "name": "stdin",
3078
  "output_type": "stream",
3079
  "text": [
3080
+ " Fixed line width\n"
3081
  ]
3082
  },
3083
  {
3084
  "data": {
3085
  "text/plain": [
3086
+ "CommitInfo(commit_url='https://huggingface.co/datasets/huggingface/documentation-images/commit/481c188cb1ec30af0fb845fd680de2264a21b01c', commit_message='Fixed line width', commit_description='', oid='481c188cb1ec30af0fb845fd680de2264a21b01c', pr_url=None, pr_revision=None, pr_num=None)"
3087
  ]
3088
  },
3089
+ "execution_count": 23,
3090
  "metadata": {},
3091
  "output_type": "execute_result"
3092
  }