Text Generation
Transformers
PyTorch
English
gpt_bigcode
starcoder
wizardcoder
code
self-instruct
distillation
text-generation-inference
Instructions to use NousResearch/Redmond-Hermes-Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NousResearch/Redmond-Hermes-Coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NousResearch/Redmond-Hermes-Coder")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("NousResearch/Redmond-Hermes-Coder") model = AutoModelForMultimodalLM.from_pretrained("NousResearch/Redmond-Hermes-Coder") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NousResearch/Redmond-Hermes-Coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NousResearch/Redmond-Hermes-Coder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NousResearch/Redmond-Hermes-Coder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NousResearch/Redmond-Hermes-Coder
- SGLang
How to use NousResearch/Redmond-Hermes-Coder 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 "NousResearch/Redmond-Hermes-Coder" \ --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": "NousResearch/Redmond-Hermes-Coder", "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 "NousResearch/Redmond-Hermes-Coder" \ --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": "NousResearch/Redmond-Hermes-Coder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NousResearch/Redmond-Hermes-Coder with Docker Model Runner:
docker model run hf.co/NousResearch/Redmond-Hermes-Coder
Update README.md
Browse files
README.md
CHANGED
|
@@ -68,6 +68,39 @@ The model is currently being uploaded in FP16 format, and there are plans to con
|
|
| 68 |
## Benchmark Results
|
| 69 |
```
|
| 70 |
HumanEval: 39%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
```
|
| 72 |
|
| 73 |
## Model Usage
|
|
|
|
| 68 |
## Benchmark Results
|
| 69 |
```
|
| 70 |
HumanEval: 39%
|
| 71 |
+
| Task |Version| Metric |Value | |Stderr|
|
| 72 |
+
|------------------------------------------------|------:|---------------------|-----:|---|-----:|
|
| 73 |
+
|arc_challenge | 0|acc |0.2858|± |0.0132|
|
| 74 |
+
| | |acc_norm |0.3148|± |0.0136|
|
| 75 |
+
|arc_easy | 0|acc |0.5349|± |0.0102|
|
| 76 |
+
| | |acc_norm |0.5097|± |0.0103|
|
| 77 |
+
|bigbench_causal_judgement | 0|multiple_choice_grade|0.5158|± |0.0364|
|
| 78 |
+
|bigbench_date_understanding | 0|multiple_choice_grade|0.5230|± |0.0260|
|
| 79 |
+
|bigbench_disambiguation_qa | 0|multiple_choice_grade|0.3295|± |0.0293|
|
| 80 |
+
|bigbench_geometric_shapes | 0|multiple_choice_grade|0.1003|± |0.0159|
|
| 81 |
+
| | |exact_str_match |0.0000|± |0.0000|
|
| 82 |
+
|bigbench_logical_deduction_five_objects | 0|multiple_choice_grade|0.2260|± |0.0187|
|
| 83 |
+
|bigbench_logical_deduction_seven_objects | 0|multiple_choice_grade|0.1957|± |0.0150|
|
| 84 |
+
|bigbench_logical_deduction_three_objects | 0|multiple_choice_grade|0.3733|± |0.0280|
|
| 85 |
+
|bigbench_movie_recommendation | 0|multiple_choice_grade|0.3200|± |0.0209|
|
| 86 |
+
|bigbench_navigate | 0|multiple_choice_grade|0.4830|± |0.0158|
|
| 87 |
+
|bigbench_reasoning_about_colored_objects | 0|multiple_choice_grade|0.4150|± |0.0110|
|
| 88 |
+
|bigbench_ruin_names | 0|multiple_choice_grade|0.2143|± |0.0194|
|
| 89 |
+
|bigbench_salient_translation_error_detection | 0|multiple_choice_grade|0.2926|± |0.0144|
|
| 90 |
+
|bigbench_snarks | 0|multiple_choice_grade|0.5249|± |0.0372|
|
| 91 |
+
|bigbench_sports_understanding | 0|multiple_choice_grade|0.4817|± |0.0159|
|
| 92 |
+
|bigbench_temporal_sequences | 0|multiple_choice_grade|0.2700|± |0.0140|
|
| 93 |
+
|bigbench_tracking_shuffled_objects_five_objects | 0|multiple_choice_grade|0.1864|± |0.0110|
|
| 94 |
+
|bigbench_tracking_shuffled_objects_seven_objects| 0|multiple_choice_grade|0.1349|± |0.0082|
|
| 95 |
+
|bigbench_tracking_shuffled_objects_three_objects| 0|multiple_choice_grade|0.3733|± |0.0280|
|
| 96 |
+
|boolq | 1|acc |0.5498|± |0.0087|
|
| 97 |
+
|hellaswag | 0|acc |0.3814|± |0.0048|
|
| 98 |
+
| | |acc_norm |0.4677|± |0.0050|
|
| 99 |
+
|openbookqa | 0|acc |0.1960|± |0.0178|
|
| 100 |
+
| | |acc_norm |0.3100|± |0.0207|
|
| 101 |
+
|piqa | 0|acc |0.6600|± |0.0111|
|
| 102 |
+
| | |acc_norm |0.6610|± |0.0110|
|
| 103 |
+
|winogrande | 0|acc |0.5343|± |0.0140|
|
| 104 |
```
|
| 105 |
|
| 106 |
## Model Usage
|