DavideTHU commited on
Commit
81d11b2
·
verified ·
1 Parent(s): 94911b5

Document how to add models

Browse files
Files changed (1) hide show
  1. README.md +13 -1
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
- > **Note:** 7–8B models need a lot of RAM. The free CPU Basic tier (16 GB RAM) will likely run out of memory for these models — use CPU Upgrade (32 GB) or a GPU for best results.
 
 
 
 
 
 
 
 
 
 
 
 
 
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.