duyntnet commited on
Commit
429d2fd
·
verified ·
1 Parent(s): a861ff0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +73 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ inference: false
7
+ tags:
8
+ - transformers
9
+ - gguf
10
+ - imatrix
11
+ - Qwen2.5-Coder-7B
12
+ ---
13
+ Quantizations of https://huggingface.co/Qwen/Qwen2.5-Coder-7B
14
+
15
+
16
+ ### Inference Clients/UIs
17
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp)
18
+ * [KoboldCPP](https://github.com/LostRuins/koboldcpp)
19
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
20
+ * [ollama](https://github.com/ollama/ollama)
21
+
22
+
23
+ ---
24
+
25
+ # From original readme
26
+
27
+ Qwen2.5-Coder is the latest series of Code-Specific Qwen large language models (formerly known as CodeQwen). For Qwen2.5-Coder, we release three base language models and instruction-tuned language models, 1.5, 7 and 32 (coming soon) billion parameters. Qwen2.5-Coder brings the following improvements upon CodeQwen1.5:
28
+
29
+ - Significantly improvements in **code generation**, **code reasoning** and **code fixing**. Base on the strong Qwen2.5, we scale up the training tokens into 5.5 trillion including source code, text-code grounding, Synthetic data, etc.
30
+ - A more comprehensive foundation for real-world applications such as **Code Agents**. Not only enhancing coding capabilities but also maintaining its strengths in mathematics and general competencies.
31
+ - **Long-context Support** up to 128K tokens.
32
+
33
+
34
+ **This repo contains the 7B Qwen2.5-Coder model**, which has the following features:
35
+ - Type: Causal Language Models
36
+ - Training Stage: Pretraining
37
+ - Architecture: transformers with RoPE, SwiGLU, RMSNorm, and Attention QKV bias
38
+ - Number of Parameters: 7.61B
39
+ - Number of Paramaters (Non-Embedding): 6.53B
40
+ - Number of Layers: 28
41
+ - Number of Attention Heads (GQA): 28 for Q and 4 for KV
42
+ - Context Length: Full 131,072 tokens
43
+ - Please refer to [this section](#processing-long-texts) for detailed instructions on how to deploy Qwen2.5 for handling long texts.
44
+
45
+ **We do not recommend using base language models for conversations.** Instead, you can apply post-training, e.g., SFT, RLHF, continued pretraining, etc., or fill in the middle tasks on this model.
46
+
47
+ For more details, please refer to our [blog](https://qwenlm.github.io/blog/qwen2.5-coder/), [GitHub](https://github.com/QwenLM/Qwen2.5-Coder), [Documentation](https://qwen.readthedocs.io/en/latest/), [Arxiv](https://arxiv.org/abs/2409.12186).
48
+
49
+ ## Requirements
50
+
51
+ The code of Qwen2.5-Coder has been in the latest Hugging face `transformers` and we advise you to use the latest version of `transformers`.
52
+
53
+ With `transformers<4.37.0`, you will encounter the following error:
54
+ ```
55
+ KeyError: 'qwen2'
56
+ ```
57
+
58
+ ### Processing Long Texts
59
+
60
+ The current `config.json` is set for context length up to 32,768 tokens.
61
+ To handle extensive inputs exceeding 32,768 tokens, we utilize [YaRN](https://arxiv.org/abs/2309.00071), a technique for enhancing model length extrapolation, ensuring optimal performance on lengthy texts.
62
+
63
+ For supported frameworks, you could add the following to `config.json` to enable YaRN:
64
+ ```json
65
+ {
66
+ ...,
67
+ "rope_scaling": {
68
+ "factor": 4.0,
69
+ "original_max_position_embeddings": 32768,
70
+ "type": "yarn"
71
+ }
72
+ }
73
+ ```