CCRss commited on
Commit
0d5c91b
Β·
verified Β·
1 Parent(s): 3def995

Upload down.ipynb

Browse files
Files changed (1) hide show
  1. down.ipynb +126 -0
down.ipynb ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "# Install required package (run this cell first)\n",
10
+ "!pip install huggingface_hub"
11
+ ]
12
+ },
13
+ {
14
+ "cell_type": "code",
15
+ "execution_count": 3,
16
+ "metadata": {},
17
+ "outputs": [
18
+ {
19
+ "name": "stdout",
20
+ "output_type": "stream",
21
+ "text": [
22
+ "Downloading vosk_models...\n"
23
+ ]
24
+ },
25
+ {
26
+ "name": "stderr",
27
+ "output_type": "stream",
28
+ "text": [
29
+ "Fetching 60 files: 0%| | 0/60 [00:00<?, ?it/s]"
30
+ ]
31
+ },
32
+ {
33
+ "name": "stderr",
34
+ "output_type": "stream",
35
+ "text": [
36
+ "Fetching 60 files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 60/60 [00:11<00:00, 5.38it/s]\n"
37
+ ]
38
+ },
39
+ {
40
+ "name": "stdout",
41
+ "output_type": "stream",
42
+ "text": [
43
+ "Download complete!\n",
44
+ "Downloading vosk_models...\n"
45
+ ]
46
+ },
47
+ {
48
+ "name": "stderr",
49
+ "output_type": "stream",
50
+ "text": [
51
+ "Fetching 9 files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 9/9 [00:03<00:00, 2.45it/s]"
52
+ ]
53
+ },
54
+ {
55
+ "name": "stdout",
56
+ "output_type": "stream",
57
+ "text": [
58
+ "Download complete!\n"
59
+ ]
60
+ },
61
+ {
62
+ "name": "stderr",
63
+ "output_type": "stream",
64
+ "text": [
65
+ "\n"
66
+ ]
67
+ }
68
+ ],
69
+ "source": [
70
+ "from huggingface_hub import snapshot_download\n",
71
+ "import os\n",
72
+ "\n",
73
+ "# Get current directory\n",
74
+ "current_dir = os.getcwd()\n",
75
+ "\n",
76
+ "print(\"Downloading vosk_models...\")\n",
77
+ "snapshot_download(\n",
78
+ " repo_id=\"CCRss/qazllm_deployment\",\n",
79
+ " repo_type=\"model\",\n",
80
+ " allow_patterns=\"vosk_models/*\",\n",
81
+ " local_dir=current_dir,\n",
82
+ " local_dir_use_symlinks=False\n",
83
+ ")\n",
84
+ "print(\"Download complete!\")\n",
85
+ "\n",
86
+ "print(\"Downloading piper_models...\")\n",
87
+ "snapshot_download(\n",
88
+ " repo_id=\"CCRss/qazllm_deployment\",\n",
89
+ " repo_type=\"model\",\n",
90
+ " allow_patterns=\"piper_models/*\",\n",
91
+ " local_dir=current_dir,\n",
92
+ " local_dir_use_symlinks=False\n",
93
+ ")\n",
94
+ "print(\"Download complete!\")"
95
+ ]
96
+ },
97
+ {
98
+ "cell_type": "code",
99
+ "execution_count": null,
100
+ "metadata": {},
101
+ "outputs": [],
102
+ "source": []
103
+ }
104
+ ],
105
+ "metadata": {
106
+ "kernelspec": {
107
+ "display_name": "vllm",
108
+ "language": "python",
109
+ "name": "vllm"
110
+ },
111
+ "language_info": {
112
+ "codemirror_mode": {
113
+ "name": "ipython",
114
+ "version": 3
115
+ },
116
+ "file_extension": ".py",
117
+ "mimetype": "text/x-python",
118
+ "name": "python",
119
+ "nbconvert_exporter": "python",
120
+ "pygments_lexer": "ipython3",
121
+ "version": "3.10.14"
122
+ }
123
+ },
124
+ "nbformat": 4,
125
+ "nbformat_minor": 2
126
+ }