prithivMLmods commited on
Commit
409236e
·
verified ·
1 Parent(s): ff626ce

Update README.md

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