prithivMLmods commited on
Commit
f07325e
·
verified ·
1 Parent(s): 09092f3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +90 -3
README.md CHANGED
@@ -1,3 +1,90 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ # **Pegasus-Opus-14B-Exp**
5
+
6
+ Pegasus-Opus-14B-Exp 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.
7
+
8
+ ## **Key Improvements**
9
+ 1. **Enhanced General Knowledge**: The model provides broad knowledge across various domains, improving capabilities in answering questions accurately and generating coherent responses.
10
+ 2. **Improved Instruction Following**: Significant advancements in understanding and following complex instructions, generating structured responses, and maintaining coherence over extended interactions.
11
+ 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.
12
+ 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.
13
+ 5. **Multilingual Proficiency**: Supports over 29 languages, including English, Chinese, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.
14
+
15
+ ## **Quickstart with transformers**
16
+
17
+ Here is a code snippet with `apply_chat_template` to show you how to load the tokenizer and model and generate content:
18
+
19
+ ```python
20
+ from transformers import AutoModelForCausalLM, AutoTokenizer
21
+
22
+ model_name = "prithivMLmods/Pegasus-Opus-14B-Exp"
23
+
24
+ model = AutoModelForCausalLM.from_pretrained(
25
+ model_name,
26
+ torch_dtype="auto",
27
+ device_map="auto"
28
+ )
29
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
30
+
31
+ prompt = "What are the key principles of general-purpose AI?"
32
+ messages = [
33
+ {"role": "system", "content": "You are a helpful assistant capable of answering a wide range of questions."},
34
+ {"role": "user", "content": prompt}
35
+ ]
36
+ text = tokenizer.apply_chat_template(
37
+ messages,
38
+ tokenize=False,
39
+ add_generation_prompt=True
40
+ )
41
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
42
+
43
+ generated_ids = model.generate(
44
+ **model_inputs,
45
+ max_new_tokens=512
46
+ )
47
+ generated_ids = [
48
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
49
+ ]
50
+
51
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
52
+ ```
53
+
54
+ ## **Intended Use**
55
+ 1. **General-Purpose Reasoning**:
56
+ Designed for broad applicability, assisting with logical reasoning, answering diverse questions, and solving general knowledge problems.
57
+
58
+ 2. **Educational and Informational Assistance**:
59
+ Suitable for providing explanations, summaries, and research-based responses for students, educators, and general users.
60
+
61
+ 3. **Conversational AI and Chatbots**:
62
+ Ideal for building intelligent conversational agents that require contextual understanding and dynamic response generation.
63
+
64
+ 4. **Multilingual Applications**:
65
+ Supports global communication, translations, and multilingual content generation.
66
+
67
+ 5. **Structured Data Processing**:
68
+ Capable of analyzing and generating structured outputs, such as tables and JSON, useful for data science and automation.
69
+
70
+ 6. **Long-Form Content Generation**:
71
+ Can generate extended responses, including articles, reports, and guides, maintaining coherence over large text outputs.
72
+
73
+ ## **Limitations**
74
+ 1. **Hardware Requirements**:
75
+ Requires high-memory GPUs or TPUs due to its large parameter size and long-context support.
76
+
77
+ 2. **Potential Bias in Responses**:
78
+ While designed to be neutral, outputs may still reflect biases present in training data.
79
+
80
+ 3. **Inconsistent Outputs in Creative Tasks**:
81
+ May produce variable results in storytelling and highly subjective topics.
82
+
83
+ 4. **Limited Real-World Awareness**:
84
+ Does not have access to real-time events beyond its training cutoff.
85
+
86
+ 5. **Error Propagation in Extended Outputs**:
87
+ Minor errors in early responses may affect overall coherence in long-form outputs.
88
+
89
+ 6. **Prompt Sensitivity**:
90
+ The effectiveness of responses may depend on how well the input prompt is structured.