Instructions to use NathMen12/Nyvex-Small-1.2-Beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NathMen12/Nyvex-Small-1.2-Beta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NathMen12/Nyvex-Small-1.2-Beta")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NathMen12/Nyvex-Small-1.2-Beta") model = AutoModelForCausalLM.from_pretrained("NathMen12/Nyvex-Small-1.2-Beta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NathMen12/Nyvex-Small-1.2-Beta with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NathMen12/Nyvex-Small-1.2-Beta" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NathMen12/Nyvex-Small-1.2-Beta", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NathMen12/Nyvex-Small-1.2-Beta
- SGLang
How to use NathMen12/Nyvex-Small-1.2-Beta with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "NathMen12/Nyvex-Small-1.2-Beta" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NathMen12/Nyvex-Small-1.2-Beta", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "NathMen12/Nyvex-Small-1.2-Beta" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NathMen12/Nyvex-Small-1.2-Beta", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NathMen12/Nyvex-Small-1.2-Beta with Docker Model Runner:
docker model run hf.co/NathMen12/Nyvex-Small-1.2-Beta
Training in progress, step 500
Browse files- config.json +2 -2
- generation_config.json +1 -1
- model.safetensors +2 -2
- training_args.bin +2 -2
config.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
],
|
| 7 |
"attn_pdrop": 0.1,
|
| 8 |
"bos_token_id": 50256,
|
| 9 |
-
"dtype": "
|
| 10 |
"embd_pdrop": 0.1,
|
| 11 |
"eos_token_id": 50256,
|
| 12 |
"initializer_range": 0.02,
|
|
@@ -29,7 +29,7 @@
|
|
| 29 |
"summary_type": "cls_index",
|
| 30 |
"summary_use_proj": true,
|
| 31 |
"tie_word_embeddings": true,
|
| 32 |
-
"transformers_version": "5.
|
| 33 |
"use_cache": false,
|
| 34 |
"vocab_size": 50257
|
| 35 |
}
|
|
|
|
| 6 |
],
|
| 7 |
"attn_pdrop": 0.1,
|
| 8 |
"bos_token_id": 50256,
|
| 9 |
+
"dtype": "float16",
|
| 10 |
"embd_pdrop": 0.1,
|
| 11 |
"eos_token_id": 50256,
|
| 12 |
"initializer_range": 0.02,
|
|
|
|
| 29 |
"summary_type": "cls_index",
|
| 30 |
"summary_use_proj": true,
|
| 31 |
"tie_word_embeddings": true,
|
| 32 |
+
"transformers_version": "5.0.0",
|
| 33 |
"use_cache": false,
|
| 34 |
"vocab_size": 50257
|
| 35 |
}
|
generation_config.json
CHANGED
|
@@ -4,6 +4,6 @@
|
|
| 4 |
"eos_token_id": 50256,
|
| 5 |
"output_attentions": false,
|
| 6 |
"output_hidden_states": false,
|
| 7 |
-
"transformers_version": "5.
|
| 8 |
"use_cache": true
|
| 9 |
}
|
|
|
|
| 4 |
"eos_token_id": 50256,
|
| 5 |
"output_attentions": false,
|
| 6 |
"output_hidden_states": false,
|
| 7 |
+
"transformers_version": "5.0.0",
|
| 8 |
"use_cache": true
|
| 9 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7f99defe1176eeae1ab32c55ad0de83294e2b6e48ae279aa55a51bd2946fe6b
|
| 3 |
+
size 2625185544
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1fcb93077e647417de23bdb421f91822a75b7560e5a7de118781de7f4df61a6
|
| 3 |
+
size 5201
|