You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ We use `pnpm` as our package manager. You need to use it, eg `pnpm install` inst
8
8
9
9
If you want to format the whole codebase, you can do `pnpm -r format` at the root.
10
10
11
-
Other than that, we avoid runtime dependencies unless they're strictly needed. For example, our only dependency is `hash-wasm`, and it's only in the browser context and when uploaded files are > 10MB.
11
+
Other than that, we avoid runtime dependencies unless they're strictly needed. Even then, we prefer vendoring the code.
12
12
13
13
## Pull requests
14
14
@@ -18,7 +18,11 @@ It's not a hard requirement, but please consider using an icon from [Gitmoji](ht
18
18
19
19
## Tests
20
20
21
-
If you want to run only specific tests, you can do `pnpm test -- -t "test name"`
21
+
If you want to run only specific tests, you can do `pnpm test -- -t "test name"`.
22
+
23
+
You can also do `npx vitest ./packages/hub/src/utils/XetBlob.spec.ts` to run a specific test file.
24
+
25
+
Or `cd packages/hub && npx vitest --browser.name=chrome --browser.headless --config vitest-browser.config.mts ./src/utils/XetBlob.spec.ts` to run browser tests on a specific file
provider: "sambanova", // or together, fal-ai, replicate, cohere …
43
43
});
44
44
45
45
awaitinference.textToImage({
46
46
model: "black-forest-labs/FLUX.1-dev",
47
+
provider: "replicate",
47
48
inputs: "a picture of a green bird",
48
49
});
49
50
@@ -54,7 +55,7 @@ await inference.textToImage({
54
55
55
56
This is a collection of JS libraries to interact with the Hugging Face API, with TS types included.
56
57
57
-
-[@huggingface/inference](packages/inference/README.md): Use HF Inference API (serverless), Inference Endpoints (dedicated) and third-party Inference Providers to make calls to 100,000+ Machine Learning models
58
+
-[@huggingface/inference](packages/inference/README.md): Use HF Inference API (serverless), Inference Endpoints (dedicated) and all supported Inference Providers to make calls to 100,000+ Machine Learning models
58
59
-[@huggingface/hub](packages/hub/README.md): Interact with huggingface.co to create or delete repos and commit / download files
59
60
-[@huggingface/agents](packages/agents/README.md): Interact with HF models through a natural language interface
60
61
-[@huggingface/gguf](packages/gguf/README.md): A GGUF parser that works on remotely hosted files.
Copy file name to clipboardExpand all lines: packages/agents/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ const agent = new HfAgent(
58
58
59
59
60
60
#### From your own endpoints
61
-
You can also specify your own endpoint, as long as it implements the same API, for exemple using [text generation inference](https://github.com/huggingface/text-generation-inference) and [Inference Endpoints](https://huggingface.co/inference-endpoints).
61
+
You can also specify your own endpoint, as long as it implements the same API, for example using [text generation inference](https://github.com/huggingface/text-generation-inference) and [Inference Endpoints](https://huggingface.co/inference-endpoints).
0 commit comments