Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
base_model:
|
|
|
|
| 3 |
tags:
|
| 4 |
- text-generation-inference
|
| 5 |
- transformers
|
|
@@ -10,100 +11,4 @@ license: apache-2.0
|
|
| 10 |
language:
|
| 11 |
- en
|
| 12 |
---
|
| 13 |
-

|
| 14 |
|
| 15 |
-
# Athena 1:
|
| 16 |
-
|
| 17 |
-
Athena 1 is a state-of-the-art language model fine-tuned from [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct). Designed to excel in instruction-following tasks, Athena 1 delivers advanced capabilities in text generation, coding, mathematics, and long-context understanding. It is optimized for a wide variety of use cases, including conversational AI, structured data interpretation, and multilingual applications. It outperforms Ava 1.5 in many aspects making Athena-1 the superior model.
|
| 18 |
-
|
| 19 |
-
---
|
| 20 |
-
|
| 21 |
-
## Key Features
|
| 22 |
-
|
| 23 |
-
### 🚀 Enhanced Capabilities
|
| 24 |
-
- **Instruction Following**: Athena 1 has been fine-tuned for superior adherence to user prompts, making it ideal for chatbots, virtual assistants, and guided workflows.
|
| 25 |
-
- **Coding and Mathematics**: Specialized fine-tuning enhances coding problem-solving and mathematical reasoning.
|
| 26 |
-
- **Long-Context Understanding**: Handles input contexts up to 128K tokens and generates up to 8K tokens.
|
| 27 |
-
|
| 28 |
-
### 🌐 Multilingual Support
|
| 29 |
-
Supports 29+ languages, including:
|
| 30 |
-
- English, Chinese, French, Spanish, Portuguese, German, Italian, Russian
|
| 31 |
-
- Japanese, Korean, Vietnamese, Thai, Arabic, and more.
|
| 32 |
-
|
| 33 |
-
### 📊 Structured Data & Outputs
|
| 34 |
-
- **Structured Data Interpretation**: Understands and processes structured formats like tables and JSON.
|
| 35 |
-
- **Structured Output Generation**: Generates well-formatted outputs, including JSON, XML, and other structured formats.
|
| 36 |
-
|
| 37 |
-
---
|
| 38 |
-
|
| 39 |
-
## Model Details
|
| 40 |
-
|
| 41 |
-
- **Base Model**: [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct)
|
| 42 |
-
- **Architecture**: Transformers with RoPE, SwiGLU, RMSNorm, and Attention QKV bias.
|
| 43 |
-
- **Parameters**: 14.7B total (13.1B non-embedding).
|
| 44 |
-
- **Layers**: 48
|
| 45 |
-
- **Attention Heads**: 40 for Q, 8 for KV.
|
| 46 |
-
- **Context Length**: Up to **131,072 tokens**.
|
| 47 |
-
|
| 48 |
-
---
|
| 49 |
-
|
| 50 |
-
## Applications
|
| 51 |
-
|
| 52 |
-
Athena 1 is designed for a wide range of use cases:
|
| 53 |
-
- Conversational AI and chatbots.
|
| 54 |
-
- Code generation, debugging, and explanation.
|
| 55 |
-
- Mathematical problem-solving.
|
| 56 |
-
- Large-document summarization and analysis.
|
| 57 |
-
- Multilingual text generation and translation.
|
| 58 |
-
- Structured data processing (e.g., tables, JSON).
|
| 59 |
-
|
| 60 |
-
---
|
| 61 |
-
|
| 62 |
-
## Quickstart
|
| 63 |
-
|
| 64 |
-
Below is an example of how to use Athena 1 for text generation:
|
| 65 |
-
|
| 66 |
-
```python
|
| 67 |
-
huggingface-cli login
|
| 68 |
-
|
| 69 |
-
# Use a pipeline as a high-level helper
|
| 70 |
-
from transformers import pipeline
|
| 71 |
-
|
| 72 |
-
messages = [
|
| 73 |
-
{"role": "user", "content": "Who are you?"},
|
| 74 |
-
]
|
| 75 |
-
pipe = pipeline("text-generation", model="Spestly/Athena-1-14B")
|
| 76 |
-
pipe(messages)
|
| 77 |
-
|
| 78 |
-
# Load model directly
|
| 79 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 80 |
-
|
| 81 |
-
tokenizer = AutoTokenizer.from_pretrained("Spestly/Athena-1-14B")
|
| 82 |
-
model = AutoModelForCausalLM.from_pretrained("Spestly/Athena-1-14B")
|
| 83 |
-
```
|
| 84 |
-
|
| 85 |
-
## Performance
|
| 86 |
-
Athena 1 has been optimized for efficiency and performance on modern GPUs. For detailed evaluation metrics (e.g., throughput, accuracy, and memory requirements), refer to the Qwen2.5 performance benchmarks.
|
| 87 |
-
|
| 88 |
-
---
|
| 89 |
-
|
| 90 |
-
## Requirements
|
| 91 |
-
To use Athena 1, ensure the following:
|
| 92 |
-
|
| 93 |
-
- Python >= 3.8
|
| 94 |
-
- Transformers >= 4.37.0 (to support Qwen models)
|
| 95 |
-
- PyTorch >= 2.0
|
| 96 |
-
- GPU with BF16 support for optimal performance.
|
| 97 |
-
|
| 98 |
-
## Citation
|
| 99 |
-
If you use Athena 1 in your research or projects, please cite its base model Qwen2.5 as follows:
|
| 100 |
-
|
| 101 |
-
```
|
| 102 |
-
@misc{qwen2.5,
|
| 103 |
-
title = {Qwen2.5: A Party of Foundation Models},
|
| 104 |
-
url = {https://qwenlm.github.io/blog/qwen2.5/},
|
| 105 |
-
author = {Qwen Team},
|
| 106 |
-
month = {September},
|
| 107 |
-
year = {2024}
|
| 108 |
-
}
|
| 109 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen2.5-14B-Instruct
|
| 4 |
tags:
|
| 5 |
- text-generation-inference
|
| 6 |
- transformers
|
|
|
|
| 11 |
language:
|
| 12 |
- en
|
| 13 |
---
|
|
|
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|