Text Generation
Transformers
Safetensors
English
Chinese
qwen2
text-generation-inference
trl
code
cygnus
Qwen
conversational
Eval Results (legacy)
Instructions to use prithivMLmods/Cygnus-II-14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Cygnus-II-14B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Cygnus-II-14B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/Cygnus-II-14B") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/Cygnus-II-14B") 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 Settings
- vLLM
How to use prithivMLmods/Cygnus-II-14B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Cygnus-II-14B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Cygnus-II-14B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Cygnus-II-14B
- SGLang
How to use prithivMLmods/Cygnus-II-14B 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 "prithivMLmods/Cygnus-II-14B" \ --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": "prithivMLmods/Cygnus-II-14B", "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 "prithivMLmods/Cygnus-II-14B" \ --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": "prithivMLmods/Cygnus-II-14B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Cygnus-II-14B with Docker Model Runner:
docker model run hf.co/prithivMLmods/Cygnus-II-14B
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,6 +12,7 @@ tags:
|
|
| 12 |
- trl
|
| 13 |
- code
|
| 14 |
- cygnus
|
|
|
|
| 15 |
model-index:
|
| 16 |
- name: Cygnus-II-14B
|
| 17 |
results:
|
|
@@ -29,7 +30,8 @@ model-index:
|
|
| 29 |
value: 61.84
|
| 30 |
name: averaged accuracy
|
| 31 |
source:
|
| 32 |
-
url:
|
|
|
|
| 33 |
name: Open LLM Leaderboard
|
| 34 |
- task:
|
| 35 |
type: text-generation
|
|
@@ -45,7 +47,8 @@ model-index:
|
|
| 45 |
value: 52.14
|
| 46 |
name: normalized accuracy
|
| 47 |
source:
|
| 48 |
-
url:
|
|
|
|
| 49 |
name: Open LLM Leaderboard
|
| 50 |
- task:
|
| 51 |
type: text-generation
|
|
@@ -61,7 +64,8 @@ model-index:
|
|
| 61 |
value: 43.96
|
| 62 |
name: exact match
|
| 63 |
source:
|
| 64 |
-
url:
|
|
|
|
| 65 |
name: Open LLM Leaderboard
|
| 66 |
- task:
|
| 67 |
type: text-generation
|
|
@@ -77,7 +81,8 @@ model-index:
|
|
| 77 |
value: 18.34
|
| 78 |
name: acc_norm
|
| 79 |
source:
|
| 80 |
-
url:
|
|
|
|
| 81 |
name: Open LLM Leaderboard
|
| 82 |
- task:
|
| 83 |
type: text-generation
|
|
@@ -92,7 +97,8 @@ model-index:
|
|
| 92 |
value: 18.11
|
| 93 |
name: acc_norm
|
| 94 |
source:
|
| 95 |
-
url:
|
|
|
|
| 96 |
name: Open LLM Leaderboard
|
| 97 |
- task:
|
| 98 |
type: text-generation
|
|
@@ -109,7 +115,8 @@ model-index:
|
|
| 109 |
value: 48.78
|
| 110 |
name: accuracy
|
| 111 |
source:
|
| 112 |
-
url:
|
|
|
|
| 113 |
name: Open LLM Leaderboard
|
| 114 |
---
|
| 115 |
|
|
@@ -214,5 +221,4 @@ Summarized results can be found [here](https://huggingface.co/datasets/open-llm-
|
|
| 214 |
|MATH Lvl 5 (4-Shot)| 43.96|
|
| 215 |
|GPQA (0-shot) | 18.34|
|
| 216 |
|MuSR (0-shot) | 18.11|
|
| 217 |
-
|MMLU-PRO (5-shot) | 48.78|
|
| 218 |
-
|
|
|
|
| 12 |
- trl
|
| 13 |
- code
|
| 14 |
- cygnus
|
| 15 |
+
- Qwen
|
| 16 |
model-index:
|
| 17 |
- name: Cygnus-II-14B
|
| 18 |
results:
|
|
|
|
| 30 |
value: 61.84
|
| 31 |
name: averaged accuracy
|
| 32 |
source:
|
| 33 |
+
url: >-
|
| 34 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCygnus-II-14B
|
| 35 |
name: Open LLM Leaderboard
|
| 36 |
- task:
|
| 37 |
type: text-generation
|
|
|
|
| 47 |
value: 52.14
|
| 48 |
name: normalized accuracy
|
| 49 |
source:
|
| 50 |
+
url: >-
|
| 51 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCygnus-II-14B
|
| 52 |
name: Open LLM Leaderboard
|
| 53 |
- task:
|
| 54 |
type: text-generation
|
|
|
|
| 64 |
value: 43.96
|
| 65 |
name: exact match
|
| 66 |
source:
|
| 67 |
+
url: >-
|
| 68 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCygnus-II-14B
|
| 69 |
name: Open LLM Leaderboard
|
| 70 |
- task:
|
| 71 |
type: text-generation
|
|
|
|
| 81 |
value: 18.34
|
| 82 |
name: acc_norm
|
| 83 |
source:
|
| 84 |
+
url: >-
|
| 85 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCygnus-II-14B
|
| 86 |
name: Open LLM Leaderboard
|
| 87 |
- task:
|
| 88 |
type: text-generation
|
|
|
|
| 97 |
value: 18.11
|
| 98 |
name: acc_norm
|
| 99 |
source:
|
| 100 |
+
url: >-
|
| 101 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCygnus-II-14B
|
| 102 |
name: Open LLM Leaderboard
|
| 103 |
- task:
|
| 104 |
type: text-generation
|
|
|
|
| 115 |
value: 48.78
|
| 116 |
name: accuracy
|
| 117 |
source:
|
| 118 |
+
url: >-
|
| 119 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCygnus-II-14B
|
| 120 |
name: Open LLM Leaderboard
|
| 121 |
---
|
| 122 |
|
|
|
|
| 221 |
|MATH Lvl 5 (4-Shot)| 43.96|
|
| 222 |
|GPQA (0-shot) | 18.34|
|
| 223 |
|MuSR (0-shot) | 18.11|
|
| 224 |
+
|MMLU-PRO (5-shot) | 48.78|
|
|
|