Spaces:
Sleeping
Sleeping
Document how to add models
Browse files
README.md
CHANGED
|
@@ -18,4 +18,16 @@ models:
|
|
| 18 |
|
| 19 |
Chat with any model from the [SparseMindAI](https://huggingface.co/SparseMindAI) organization. Pick a model from the dropdown and stream responses; each reply reports TTFT, TPT, total time, token count, and tokens/sec.
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
Chat with any model from the [SparseMindAI](https://huggingface.co/SparseMindAI) organization. Pick a model from the dropdown and stream responses; each reply reports TTFT, TPT, total time, token count, and tokens/sec.
|
| 20 |
|
| 21 |
+
## Adding models
|
| 22 |
+
|
| 23 |
+
The dropdown lists every public model under the `SparseMindAI` namespace when the Space starts.
|
| 24 |
+
|
| 25 |
+
1. Upload the model to the org as a standard `transformers` checkpoint (with `config.json`, safetensors, and tokenizer files):
|
| 26 |
+
```bash
|
| 27 |
+
hf upload SparseMindAI/<model-name> <local-model-folder>
|
| 28 |
+
```
|
| 29 |
+
2. Restart the Space (Settings → Restart Space, or push any commit) so the dropdown refreshes.
|
| 30 |
+
|
| 31 |
+
To list models from a different namespace, set the `MODELS_NAMESPACE` variable in **Space Settings → Variables and secrets**.
|
| 32 |
+
|
| 33 |
+
> **Note:** The Space runs on ZeroGPU. The first prompt with a model downloads it into the Space's cache (~15 GB for the 8B), so the first response is slow.
|