Instructions to use streamerbtw1002/Nexuim-R1-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use streamerbtw1002/Nexuim-R1-7B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="streamerbtw1002/Nexuim-R1-7B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("streamerbtw1002/Nexuim-R1-7B-Instruct") model = AutoModelForCausalLM.from_pretrained("streamerbtw1002/Nexuim-R1-7B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use streamerbtw1002/Nexuim-R1-7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "streamerbtw1002/Nexuim-R1-7B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "streamerbtw1002/Nexuim-R1-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/streamerbtw1002/Nexuim-R1-7B-Instruct
- SGLang
How to use streamerbtw1002/Nexuim-R1-7B-Instruct 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 "streamerbtw1002/Nexuim-R1-7B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "streamerbtw1002/Nexuim-R1-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "streamerbtw1002/Nexuim-R1-7B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "streamerbtw1002/Nexuim-R1-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use streamerbtw1002/Nexuim-R1-7B-Instruct with Docker Model Runner:
docker model run hf.co/streamerbtw1002/Nexuim-R1-7B-Instruct
Improve language tag
#1
by lbourdois - opened
README.md
CHANGED
|
@@ -1,71 +1,79 @@
|
|
| 1 |
-
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
tags:
|
| 4 |
-
- CoT
|
| 5 |
-
- Code
|
| 6 |
-
license: apache-2.0
|
| 7 |
-
language:
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
model_id,
|
| 68 |
-
revision="main"
|
| 69 |
-
)
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- CoT
|
| 5 |
+
- Code
|
| 6 |
+
license: apache-2.0
|
| 7 |
+
language:
|
| 8 |
+
- zho
|
| 9 |
+
- eng
|
| 10 |
+
- fra
|
| 11 |
+
- spa
|
| 12 |
+
- por
|
| 13 |
+
- deu
|
| 14 |
+
- ita
|
| 15 |
+
- rus
|
| 16 |
+
- jpn
|
| 17 |
+
- kor
|
| 18 |
+
- vie
|
| 19 |
+
- tha
|
| 20 |
+
- ara
|
| 21 |
+
base_model: Qwen/Qwen2.5-7B-Instruct
|
| 22 |
+
model_name: streamerbtw1002/Nexuim-R1-7B-Instruct
|
| 23 |
+
revision: main
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## Model Details
|
| 27 |
+
|
| 28 |
+
**Model Name:** streamerbtw1002/Nexuim-R1-7B-Instruct
|
| 29 |
+
|
| 30 |
+
**Developed by:** [James Phifer](https://nexusmind.tech/) (NexusMind.tech)
|
| 31 |
+
**Funded by:** [Tristian](https://shuttleai.com/) (Shuttle.ai)
|
| 32 |
+
**License:** Apache-2.0
|
| 33 |
+
**Finetuned from:** Qwen/Qwen2.5-VL-7B-Instruct
|
| 34 |
+
**Architecture:** Transformer-based LLM
|
| 35 |
+
|
| 36 |
+
### Overview
|
| 37 |
+
This model is designed to handle complex mathematical questions efficiently using Chain of Thought (CoT) reasoning.
|
| 38 |
+
|
| 39 |
+
- **Capabilities:**
|
| 40 |
+
- General-purpose LLM
|
| 41 |
+
- Strong performance on multi-step reasoning tasks
|
| 42 |
+
- Able to respond to requests ethically while preventing human harm
|
| 43 |
+
|
| 44 |
+
- **Limitations:**
|
| 45 |
+
- Not evaluated extensively
|
| 46 |
+
- May generate incorrect or biased outputs in certain contexts
|
| 47 |
+
|
| 48 |
+
## Training Details
|
| 49 |
+
|
| 50 |
+
**Dataset:** Trained on a **120k-line** CoT dataset for mathematical reasoning.
|
| 51 |
+
**Training Hardware:** 1x A100 80GB GPU (Provided by Tristian at Shuttle.ai)
|
| 52 |
+
|
| 53 |
+
## Evaluation
|
| 54 |
+
|
| 55 |
+
**Status:** Not formally tested yet.
|
| 56 |
+
**Preliminary Results:**
|
| 57 |
+
- Provides detailed, well-structured answers
|
| 58 |
+
- Performs well on long-form mathematical problems
|
| 59 |
+
|
| 60 |
+
## Usage
|
| 61 |
+
```python
|
| 62 |
+
from transformers import AutoConfig, AutoModel, AutoTokenizer
|
| 63 |
+
|
| 64 |
+
model_id = "streamerbtw1002/Nexuim-R1-7B-Instruct"
|
| 65 |
+
|
| 66 |
+
config = AutoConfig.from_pretrained(
|
| 67 |
+
model_id,
|
| 68 |
+
revision="main"
|
| 69 |
+
)
|
| 70 |
+
model = AutoModel.from_pretrained(
|
| 71 |
+
model_id,
|
| 72 |
+
revision="main"
|
| 73 |
+
)
|
| 74 |
+
tokenizer = AutoTokenizer.from_pretrained(
|
| 75 |
+
model_id,
|
| 76 |
+
revision="main"
|
| 77 |
+
)
|
| 78 |
+
|
| 79 |
```
|