prithivMLmods commited on
Commit
6e5bcef
·
verified ·
1 Parent(s): 0a3358c

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
+ tags:
4
+ - text-generation-inference
5
+ - Reasoning
6
+ - Raptor
7
+ - X1
8
+ - Coder
9
+ - Html
10
+ - Css
11
+ - React
12
+ - Python
13
+ - Java
14
+ - Qwen
15
+ language:
16
+ - en
17
+ base_model:
18
+ - prithivMLmods/Viper-OneCoder-UIGEN
19
+ pipeline_tag: text-generation
20
+ library_name: transformers
21
+ ---
22
+
23
+ ![3.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/O-iJBVB9Z0p2G9BdEuRci.png)
24
+
25
+ # **Raptor X3**
26
+
27
+ Raptor X3 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 advanced coding reasoning and UI coding. It excels in contextual understanding, logical deduction, and multi-step problem-solving. Raptor X3 has been fine-tuned using a long chain-of-thought reasoning model and specialized datasets to improve comprehension, structured responses, and conversational intelligence.
28
+
29
+ Key improvements include:
30
+ 1. **Enhanced Coding Reasoning**: Provides in-depth explanations and optimizations for complex coding problems, making it useful for developers and engineers.
31
+ 2. **Advanced UI Coding Support**: Excels in generating and refining front-end code for web and mobile applications.
32
+ 3. **General-Purpose Coding**: Capable of generating, debugging, and optimizing code across multiple programming languages, supporting software development and automation.
33
+ 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.
34
+ 5. **Multilingual Proficiency**: Supports over 29 languages, including English, Chinese, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.
35
+
36
+ # **Quickstart with transformers**
37
+
38
+ Here is a code snippet with `apply_chat_template` to show you how to load the tokenizer and model and generate content:
39
+
40
+ ```python
41
+ from transformers import AutoModelForCausalLM, AutoTokenizer
42
+
43
+ model_name = "prithivMLmods/Raptor-X3"
44
+
45
+ model = AutoModelForCausalLM.from_pretrained(
46
+ model_name,
47
+ torch_dtype="auto",
48
+ device_map="auto"
49
+ )
50
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
51
+
52
+ prompt = "How do I optimize React performance?"
53
+ messages = [
54
+ {"role": "system", "content": "You are a helpful assistant capable of answering a wide range of questions."},
55
+ {"role": "user", "content": prompt}
56
+ ]
57
+ text = tokenizer.apply_chat_template(
58
+ messages,
59
+ tokenize=False,
60
+ add_generation_prompt=True
61
+ )
62
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
63
+
64
+ generated_ids = model.generate(
65
+ **model_inputs,
66
+ max_new_tokens=512
67
+ )
68
+ generated_ids = [
69
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
70
+ ]
71
+
72
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
73
+ ```
74
+
75
+ # **Intended Use**
76
+ 1. **Coding Reasoning**:
77
+ Designed for providing explanations, optimizations, and best practices for coding problems.
78
+ 2. **UI Coding and Development**:
79
+ Excels in front-end development, including React, Vue, and other UI frameworks.
80
+ 3. **Programming and Software Development**:
81
+ Capable of generating, analyzing, and optimizing code in multiple programming languages.
82
+ 4. **Educational Assistance**:
83
+ Helps developers by providing coding tutorials, debugging assistance, and structured learning material.
84
+ 5. **Multilingual Applications**:
85
+ Supports global communication, translations, and multilingual content generation.
86
+ 6. **Long-Form Content Generation**:
87
+ Can generate extended responses, including documentation, technical reports, and coding guides.
88
+
89
+ # **Limitations**
90
+ 1. **Hardware Requirements**:
91
+ Requires high-memory GPUs or TPUs due to its large parameter size and long-context support.
92
+ 2. **Potential Bias in Responses**:
93
+ While designed to be neutral, outputs may still reflect biases present in training data.
94
+ 3. **Complexity in Some Advanced Topics**:
95
+ While proficient in general coding, highly specialized fields may require verification.
96
+ 4. **Limited Real-World Awareness**:
97
+ Does not have access to real-time events beyond its training cutoff.
98
+ 5. **Error Propagation in Extended Outputs**:
99
+ Minor errors in early responses may affect overall coherence in long-form outputs.
100
+ 6. **Prompt Sensitivity**:
101
+ The effectiveness of responses may depend on how well the input prompt is structured.
102
+