Aayan Mishra
commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,131 @@ tags:
|
|
| 6 |
- transformers
|
| 7 |
- unsloth
|
| 8 |
- gpt_oss
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
license: apache-2.0
|
| 10 |
language:
|
| 11 |
- en
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
- transformers
|
| 7 |
- unsloth
|
| 8 |
- gpt_oss
|
| 9 |
+
- large-language-model
|
| 10 |
+
- multilingual
|
| 11 |
+
- transformer
|
| 12 |
+
- causal-lm
|
| 13 |
+
- conversational-ai
|
| 14 |
+
- text-generation
|
| 15 |
license: apache-2.0
|
| 16 |
language:
|
| 17 |
- en
|
| 18 |
+
- de
|
| 19 |
+
- fr
|
| 20 |
+
- es
|
| 21 |
+
- it
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# Hermes-A1-20B
|
| 25 |
+
|
| 26 |
+
**Hermes-A1-20B** is a 20-billion parameter multilingual large language model (LLM) built on top of [GPT-OSS-20B](https://huggingface.co/openai/gpt-oss-20b). Hermes-A1-20B extends the capabilities of the original model with enhanced multilingual understanding, generation, and reasoning, making it suitable for research and production applications across diverse languages.
|
| 27 |
+
|
| 28 |
+
The model is designed to perform a wide range of tasks, including natural language understanding, code completion, translation, summarisation, and complex reasoning, all with multilingual support.
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## Model Highlights
|
| 33 |
+
|
| 34 |
+
| Feature | Description |
|
| 35 |
+
|---------|-------------|
|
| 36 |
+
| **Base Model** | GPT-OSS-20B |
|
| 37 |
+
| **Parameters** | 20B |
|
| 38 |
+
| **Architecture** | Transformer-based causal language model |
|
| 39 |
+
| **Training Objective** | Autoregressive causal language modeling |
|
| 40 |
+
| **Multilingual Support** | Enhanced embeddings for multiple languages (see metadata for full list) |
|
| 41 |
+
| **Applications** | Chatbots, text completion, translation, code generation, reasoning tasks |
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## Technical Overview
|
| 46 |
+
|
| 47 |
+
Hermes-A1-20B builds on GPT-OSS-20B while introducing several key enhancements:
|
| 48 |
+
|
| 49 |
+
1. **Multilingual Tokenization and Embeddings**
|
| 50 |
+
- Improved tokenization and embedding layers to handle multiple languages.
|
| 51 |
+
- Optimized for high-frequency languages as well as low-resource languages (coverage listed in metadata).
|
| 52 |
+
|
| 53 |
+
2. **Architecture**
|
| 54 |
+
- 20B parameters, 64 attention layers (example, adjust per your actual config), causal self-attention.
|
| 55 |
+
- Supports long-context sequences with memory-efficient attention.
|
| 56 |
+
|
| 57 |
+
3. **Training Details**
|
| 58 |
+
- Initialized from GPT-OSS-20B weights.
|
| 59 |
+
- Fine-tuned on a curated multilingual corpus.
|
| 60 |
+
- Mixed-precision training with distributed GPU clusters for efficiency.
|
| 61 |
+
|
| 62 |
+
4. **Inference Optimization**
|
| 63 |
+
- Supports batch and streaming generation.
|
| 64 |
+
- Can be deployed on GPU and CPU for research or production applications.
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## Supported Languages
|
| 69 |
+
|
| 70 |
+
Hermes-A1-20B supports multiple languages for both comprehension and generation. For the full list of languages, please check the [model metadata on Hugging Face](https://huggingface.co/your-username/hermes-a1-20b).
|
| 71 |
+
|
| 72 |
+
Example language families:
|
| 73 |
+
|
| 74 |
+
- English, Spanish, French, German, Portuguese
|
| 75 |
+
- Chinese (Simplified & Traditional), Japanese, Korean
|
| 76 |
+
- Hindi, Arabic, Russian, Turkish
|
| 77 |
+
- Other regional languages with partial coverage
|
| 78 |
+
|
| 79 |
+
Performance may vary depending on language resources and training data coverage.
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
+
|
| 83 |
+
## Use Cases
|
| 84 |
+
|
| 85 |
+
1. **Conversational AI and Multilingual Chatbots**
|
| 86 |
+
- Engage in context-aware conversations across supported languages.
|
| 87 |
+
|
| 88 |
+
2. **Text Generation and Completion**
|
| 89 |
+
- Story writing, creative content generation, and automated summarization.
|
| 90 |
+
|
| 91 |
+
3. **Code Generation & Comprehension**
|
| 92 |
+
- Supports programming languages and natural language code prompts.
|
| 93 |
+
|
| 94 |
+
4. **Multilingual Translation & Summarization**
|
| 95 |
+
- Translate text between supported languages.
|
| 96 |
+
- Summarize documents in multiple languages.
|
| 97 |
+
|
| 98 |
+
5. **Reasoning and Knowledge Tasks**
|
| 99 |
+
- Handles multi-step reasoning queries, QA systems, and educational tasks.
|
| 100 |
+
|
| 101 |
+
---
|
| 102 |
+
|
| 103 |
+
## Example Usage
|
| 104 |
+
|
| 105 |
+
```python
|
| 106 |
+
# Use a pipeline as a high-level helper
|
| 107 |
+
from transformers import pipeline
|
| 108 |
+
|
| 109 |
+
pipe = pipeline("text-generation", model="Spestly/Hermes-A1-20B")
|
| 110 |
+
messages = [
|
| 111 |
+
{"role": "user", "content": "Who are you?"},
|
| 112 |
+
]
|
| 113 |
+
pipe(messages)
|
| 114 |
+
````
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
|
| 118 |
+
## Limitations
|
| 119 |
+
|
| 120 |
+
* Performance varies by language and domain; low-resource languages may be less accurate.
|
| 121 |
+
* May generate plausible but incorrect or biased outputs. Human oversight recommended.
|
| 122 |
+
* Not recommended for safety-critical applications without evaluation.
|
| 123 |
+
|
| 124 |
+
---
|
| 125 |
+
|
| 126 |
+
## Citation
|
| 127 |
+
|
| 128 |
+
```bibtex
|
| 129 |
+
@misc{hermes-a1-20b,
|
| 130 |
+
title={Hermes-A1-20B: A Multilingual Large Language Model},
|
| 131 |
+
author={Aayan mishra},
|
| 132 |
+
year={2025},
|
| 133 |
+
url={https://huggingface.co/Spestly/Hermes-A1-20B/}
|
| 134 |
+
}
|
| 135 |
+
```
|
| 136 |
+
|