prithivMLmods commited on
Commit
cd5b03c
·
verified ·
1 Parent(s): 65fe236

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +103 -3
README.md CHANGED
@@ -1,3 +1,103 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - Qwen/Qwen2.5-14B-Instruct-1M
7
+ pipeline_tag: text-generation
8
+ library_name: transformers
9
+ tags:
10
+ - text-generation-inference
11
+ - code
12
+ - Qwen
13
+ - 14B
14
+ ---
15
+
16
+ ![7.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/U80NQmMNhQDnOW-yye0dc.png)
17
+
18
+ # **Cassiopeia-Qwen-14B**
19
+
20
+ Cassiopeia-Qwen-14B is based on the Qwen 2.5 14B modality architecture, designed to enhance the reasoning capabilities of 14B-parameter models. This model is optimized for general-purpose reasoning and answering, excelling in contextual understanding, logical deduction, and multi-step problem-solving. It has been fine-tuned using a long chain-of-thought reasoning model and specialized datasets to improve comprehension, structured responses, and conversational intelligence.
21
+
22
+ ## **Key Improvements**
23
+ 1. **Enhanced General Knowledge**: The model provides broad knowledge across various domains, improving capabilities in answering questions accurately and generating coherent responses.
24
+ 2. **Improved Instruction Following**: Significant advancements in understanding and following complex instructions, generating structured responses, and maintaining coherence over extended interactions.
25
+ 3. **Versatile Adaptability**: More resilient to diverse prompts, enhancing its ability to handle a wide range of topics and conversation styles, including open-ended and structured inquiries.
26
+ 4. **Long-Context Support**: Supports up to 128K tokens for input context and can generate up to 8K tokens in a single output, making it ideal for detailed responses.
27
+
28
+ ## **Quickstart with transformers**
29
+
30
+ Here is a code snippet with `apply_chat_template` to show you how to load the tokenizer and model and generate content:
31
+
32
+ ```python
33
+ from transformers import AutoModelForCausalLM, AutoTokenizer
34
+
35
+ model_name = "prithivMLmods/Cassiopeia-Qwen-14B"
36
+
37
+ model = AutoModelForCausalLM.from_pretrained(
38
+ model_name,
39
+ torch_dtype="auto",
40
+ device_map="auto"
41
+ )
42
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
43
+
44
+ prompt = "What are the key principles of general-purpose AI?"
45
+ messages = [
46
+ {"role": "system", "content": "You are a helpful assistant capable of answering a wide range of questions."},
47
+ {"role": "user", "content": prompt}
48
+ ]
49
+ text = tokenizer.apply_chat_template(
50
+ messages,
51
+ tokenize=False,
52
+ add_generation_prompt=True
53
+ )
54
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
55
+
56
+ generated_ids = model.generate(
57
+ **model_inputs,
58
+ max_new_tokens=512
59
+ )
60
+ generated_ids = [
61
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
62
+ ]
63
+
64
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
65
+ ```
66
+
67
+ ## **Intended Use**
68
+ 1. **General-Purpose Reasoning**:
69
+ Designed for broad applicability, assisting with logical reasoning, answering diverse questions, and solving general knowledge problems.
70
+
71
+ 2. **Educational and Informational Assistance**:
72
+ Suitable for providing explanations, summaries, and research-based responses for students, educators, and general users.
73
+
74
+ 3. **Conversational AI and Chatbots**:
75
+ Ideal for building intelligent conversational agents that require contextual understanding and dynamic response generation.
76
+
77
+ 4. **Multilingual Applications**:
78
+ Supports global communication, translations, and multilingual content generation.
79
+
80
+ 5. **Structured Data Processing**:
81
+ Capable of analyzing and generating structured outputs, such as tables and JSON, useful for data science and automation.
82
+
83
+ 6. **Long-Form Content Generation**:
84
+ Can generate extended responses, including articles, reports, and guides, maintaining coherence over large text outputs.
85
+
86
+ ## **Limitations**
87
+ 1. **Hardware Requirements**:
88
+ Requires high-memory GPUs or TPUs due to its large parameter size and long-context support.
89
+
90
+ 2. **Potential Bias in Responses**:
91
+ While designed to be neutral, outputs may still reflect biases present in training data.
92
+
93
+ 3. **Inconsistent Outputs in Creative Tasks**:
94
+ May produce variable results in storytelling and highly subjective topics.
95
+
96
+ 4. **Limited Real-World Awareness**:
97
+ Does not have access to real-time events beyond its training cutoff.
98
+
99
+ 5. **Error Propagation in Extended Outputs**:
100
+ Minor errors in early responses may affect overall coherence in long-form outputs.
101
+
102
+ 6. **Prompt Sensitivity**:
103
+ The effectiveness of responses may depend on how well the input prompt is structured.