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
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,45 +10,4 @@ model-index:
|
|
| 10 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 11 |
should probably proofread and complete it, then remove this comment. -->
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 16 |
-
|
| 17 |
-
## Model description
|
| 18 |
-
|
| 19 |
-
More information needed
|
| 20 |
-
|
| 21 |
-
## Intended uses & limitations
|
| 22 |
-
|
| 23 |
-
More information needed
|
| 24 |
-
|
| 25 |
-
## Training and evaluation data
|
| 26 |
-
|
| 27 |
-
More information needed
|
| 28 |
-
|
| 29 |
-
## Training procedure
|
| 30 |
-
|
| 31 |
-
### Training hyperparameters
|
| 32 |
-
|
| 33 |
-
The following hyperparameters were used during training:
|
| 34 |
-
- learning_rate: 0.0001
|
| 35 |
-
- train_batch_size: 1
|
| 36 |
-
- eval_batch_size: 8
|
| 37 |
-
- seed: 42
|
| 38 |
-
- gradient_accumulation_steps: 4
|
| 39 |
-
- total_train_batch_size: 4
|
| 40 |
-
- optimizer: Use OptimizerNames.ADAFACTOR and the args are:
|
| 41 |
-
No additional optimizer arguments
|
| 42 |
-
- lr_scheduler_type: linear
|
| 43 |
-
- num_epochs: 1
|
| 44 |
-
|
| 45 |
-
### Training results
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
### Framework versions
|
| 50 |
-
|
| 51 |
-
- Transformers 5.9.0
|
| 52 |
-
- Pytorch 2.8.0+cu128
|
| 53 |
-
- Datasets 4.8.5
|
| 54 |
-
- Tokenizers 0.22.2
|
|
|
|
| 10 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 11 |
should probably proofread and complete it, then remove this comment. -->
|
| 12 |
|
| 13 |
+
This model is still in training, so it is not yet capable of having a proper conversation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|