Binarybardakshat commited on
Commit
8bc183b
1 Parent(s): af051d7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -3
README.md CHANGED
@@ -1,3 +1,71 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ tags:
4
+ - Explain code
5
+ - Code Summarization
6
+ - Summarization
7
+ license: apache-2.0
8
+ ---
9
+
10
+ # XVCLM
11
+
12
+ For in-depth understanding of our model and methods, please see our blog [here](https://binarybardakshat.medium.com/xvclm-revolutionizing-code-interpretation-9e9fd84de3c3)
13
+
14
+ ## Model description
15
+
16
+ XVCLM is a transformer-based model designed to explain and summarize code. It has been pre-trained on approximately **1 million code/description pairs** and fine-tuned on a curated set of **10,000 high-quality examples**. XVCLM can handle short to medium code snippets in:
17
+
18
+ - Python
19
+ - JavaScript (including frameworks like React)
20
+ - Java
21
+ - Ruby
22
+ - Go
23
+ - PHP
24
+
25
+ The model outputs descriptions in English.
26
+
27
+ ## Intended uses
28
+
29
+ XVCLM, without any additional fine-tuning, can explain code in a few sentences and typically performs best with Python and JavaScript. We recommend using XVCLM for:
30
+
31
+ - Simple code explanations
32
+ - Documentation generation
33
+ - Producing synthetic data to enhance model explanations
34
+
35
+ ### How to use
36
+
37
+ You can use this model directly with a pipeline for text-to-text generation, as shown below:
38
+
39
+ ```python
40
+ from transformers import pipeline, set_seed
41
+
42
+ summarizer = pipeline('text2text-generation', model='Binarybardakshat/XVCLM-MIN-DECT')
43
+ code = "print('hello world!')"
44
+
45
+ response = summarizer(code, max_length=100, num_beams=3)
46
+ print("Summarized code: " + response[0]['generated_text'])
47
+
48
+ ```
49
+
50
+ Which should yield something along the lines of:
51
+
52
+ ```
53
+ Summarized code: The following code is greeting the world.
54
+ ```
55
+
56
+
57
+ ### Model sizes
58
+
59
+ - XVCLM (this repo): 1 Million Parameters
60
+ - XVCLM-Small: 220 Million Parameters
61
+
62
+ ### Limitations
63
+
64
+ XVCLM may produce overly simplistic descriptions that don't cover the entirety of a code snippet. We believe that with more diverse training data, we can overcome this limitation and achieve better results.
65
+
66
+ ### About Us
67
+
68
+ At Vinkura, We're all about using AI to benefit everyone. We believe AI should be safe and put people first, not just profits. Our goal is to make AI that helps solve big problems and is available to everyone.
69
+ We know that diversity is key to success, so we value all kinds of voices and experiences. We're always working to make sure everyone feels included and supported.
70
+
71
+