prithivMLmods commited on
Commit
820c394
·
verified ·
1 Parent(s): 0f00969

Update README.md

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