Text Generation
Transformers
Safetensors
qwen2
mergekit
Merge
conversational
text-generation-inference
Instructions to use RDson/CoderO1-14B-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RDson/CoderO1-14B-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RDson/CoderO1-14B-Preview") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RDson/CoderO1-14B-Preview") model = AutoModelForCausalLM.from_pretrained("RDson/CoderO1-14B-Preview") 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 RDson/CoderO1-14B-Preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RDson/CoderO1-14B-Preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RDson/CoderO1-14B-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RDson/CoderO1-14B-Preview
- SGLang
How to use RDson/CoderO1-14B-Preview 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 "RDson/CoderO1-14B-Preview" \ --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": "RDson/CoderO1-14B-Preview", "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 "RDson/CoderO1-14B-Preview" \ --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": "RDson/CoderO1-14B-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RDson/CoderO1-14B-Preview with Docker Model Runner:
docker model run hf.co/RDson/CoderO1-14B-Preview
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ tags:
|
|
| 11 |
- merge
|
| 12 |
|
| 13 |
---
|
| 14 |
-
#
|
| 15 |
|
| 16 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 17 |
|
|
@@ -35,20 +35,15 @@ The following YAML configuration was used to produce this model:
|
|
| 35 |
```yaml
|
| 36 |
models:
|
| 37 |
# Pivot model
|
| 38 |
-
|
| 39 |
# Target models
|
| 40 |
- model: Qwen/Qwen2.5-14B-Instruct
|
| 41 |
- model: deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
|
| 42 |
- model: arcee-ai/Virtuoso-Small-v2
|
| 43 |
-
- model: arcee-ai/SuperNova-Medius
|
| 44 |
- model: Krystalan/DRT-o1-14B
|
| 45 |
merge_method: sce
|
| 46 |
base_model: arcee-ai/SuperNova-Medius
|
| 47 |
-
# Qwen/Qwen2.5-14B
|
| 48 |
tokenizer_source: base
|
| 49 |
-
# arcee-ai/Virtuoso-Small-v2
|
| 50 |
-
# Qwen/Qwen2.5-14B
|
| 51 |
-
# deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
|
| 52 |
parameters:
|
| 53 |
select_topk: 1.0
|
| 54 |
dtype: bfloat16
|
|
|
|
| 11 |
- merge
|
| 12 |
|
| 13 |
---
|
| 14 |
+
# CoderO1-14B-Preview
|
| 15 |
|
| 16 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 17 |
|
|
|
|
| 35 |
```yaml
|
| 36 |
models:
|
| 37 |
# Pivot model
|
| 38 |
+
- model: arcee-ai/SuperNova-Medius
|
| 39 |
# Target models
|
| 40 |
- model: Qwen/Qwen2.5-14B-Instruct
|
| 41 |
- model: deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
|
| 42 |
- model: arcee-ai/Virtuoso-Small-v2
|
|
|
|
| 43 |
- model: Krystalan/DRT-o1-14B
|
| 44 |
merge_method: sce
|
| 45 |
base_model: arcee-ai/SuperNova-Medius
|
|
|
|
| 46 |
tokenizer_source: base
|
|
|
|
|
|
|
|
|
|
| 47 |
parameters:
|
| 48 |
select_topk: 1.0
|
| 49 |
dtype: bfloat16
|