Sarah Ciston
commited on
Commit
·
0cae0a3
1
Parent(s):
cf748ec
update CDN link, remove extra models in list, adjust yaml spacing
Browse files- README.md +2 -16
- sketch.js +1 -1
- tutorial.md +17 -1
README.md
CHANGED
@@ -11,22 +11,8 @@ hf_oauth_scopes:
|
|
11 |
- write-repos
|
12 |
- inference-api
|
13 |
models:
|
14 |
-
- bert-base-uncased
|
15 |
-
- distilroberta-base
|
16 |
-
# - gpt-3.5-turbo
|
17 |
-
# - bigscience/bloom-560m
|
18 |
-
# - Xenova/distilgpt2
|
19 |
-
# - HuggingFaceH4/zephyr-7b-gemma-v0.1
|
20 |
-
# - HuggingFaceH4/zephyr-7b-beta
|
21 |
-
# - openai-community/gpt2
|
22 |
-
# - meta-llama/Meta-Llama-3-70B-Instruct
|
23 |
-
# - Xenova/detr-resnet-50
|
24 |
-
# - Xenova/gpt2
|
25 |
-
# - Xenova/bloom-560m
|
26 |
-
# - Xenova/gpt-3.5-turbo
|
27 |
-
# - Xenova/llama-68m
|
28 |
-
# - Xenova/LaMini-Flan-T5-783M
|
29 |
-
# - meta-llama/Meta-Llama-3-8B
|
30 |
|
31 |
---
|
32 |
|
|
|
11 |
- write-repos
|
12 |
- inference-api
|
13 |
models:
|
14 |
+
- bert-base-uncased
|
15 |
+
- distilroberta-base
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
---
|
18 |
|
sketch.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
// connect to API via module
|
2 |
|
3 |
// import { AutoTokenizer, env } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers';
|
4 |
-
import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers';
|
5 |
|
6 |
/// AUTHORIZATION
|
7 |
// import { textGeneration } from 'https://esm.sh/@huggingface/inference';
|
|
|
1 |
// connect to API via module
|
2 |
|
3 |
// import { AutoTokenizer, env } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers';
|
4 |
+
import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17.2';
|
5 |
|
6 |
/// AUTHORIZATION
|
7 |
// import { textGeneration } from 'https://esm.sh/@huggingface/inference';
|
tutorial.md
CHANGED
@@ -227,4 +227,20 @@ To check if your authorization has worked, visit the Settings for your Hugging F
|
|
227 |
|
228 |
![screenshot of authorized space in Hugging Face Settings interface]()
|
229 |
|
230 |
-
<!-- EXAMPLES: https://huggingface.co/docs/huggingface.js/main/en/index#huggingfaceinference-examples -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
|
228 |
![screenshot of authorized space in Hugging Face Settings interface]()
|
229 |
|
230 |
+
<!-- EXAMPLES: https://huggingface.co/docs/huggingface.js/main/en/index#huggingfaceinference-examples -->
|
231 |
+
|
232 |
+
<!--
|
233 |
+
# - gpt-3.5-turbo
|
234 |
+
# - bigscience/bloom-560m
|
235 |
+
# - Xenova/distilgpt2
|
236 |
+
# - HuggingFaceH4/zephyr-7b-gemma-v0.1
|
237 |
+
# - HuggingFaceH4/zephyr-7b-beta
|
238 |
+
# - openai-community/gpt2
|
239 |
+
# - meta-llama/Meta-Llama-3-70B-Instruct
|
240 |
+
# - Xenova/detr-resnet-50
|
241 |
+
# - Xenova/gpt2
|
242 |
+
# - Xenova/bloom-560m
|
243 |
+
# - Xenova/gpt-3.5-turbo
|
244 |
+
# - Xenova/llama-68m
|
245 |
+
# - Xenova/LaMini-Flan-T5-783M
|
246 |
+
# - meta-llama/Meta-Llama-3-8B -->
|