prithivMLmods commited on
Commit
00f7948
·
verified ·
1 Parent(s): 0211c30

Update README.md

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