commit bb30373237ed389b0f0767914aab988b30e43025 Author: ModelHub XC Date: Fri May 15 21:11:26 2026 +0800 初始化项目,由ModelHub XC社区提供模型 Model: LoneStriker/CodeMate-v0.1-GGUF Source: Original Platform diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1a53640 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +CodeMate-v0.1-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text +CodeMate-v0.1-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/CodeMate-v0.1-Q2_K.gguf b/CodeMate-v0.1-Q2_K.gguf new file mode 100644 index 0000000..54f23fc --- /dev/null +++ b/CodeMate-v0.1-Q2_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44fcd6c1522fa9f4c0b7b3dac1be21984368b368c0a58c89a4d7ee388d4b6517 +size 12505690368 diff --git a/CodeMate-v0.1-Q3_K_L.gguf b/CodeMate-v0.1-Q3_K_L.gguf new file mode 100644 index 0000000..3413ab5 --- /dev/null +++ b/CodeMate-v0.1-Q3_K_L.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe5a74c97ed28e83e2a9682f40854634e6e7be4512958a7e64f858de09055ce0 +size 17771524352 diff --git a/CodeMate-v0.1-Q3_K_M.gguf b/CodeMate-v0.1-Q3_K_M.gguf new file mode 100644 index 0000000..cc16310 --- /dev/null +++ b/CodeMate-v0.1-Q3_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26ee1f7f0dd6cc82f34e8239db7d56059e400c7e78b08f7cd80ee91d28512db4 +size 16306139392 diff --git a/CodeMate-v0.1-Q3_K_S.gguf b/CodeMate-v0.1-Q3_K_S.gguf new file mode 100644 index 0000000..4584564 --- /dev/null +++ b/CodeMate-v0.1-Q3_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f04ed9ab5cf57fd05519a67ca7ff9f45cceeb7af1b706679f785d558f54b2da2 +size 14605349120 diff --git a/CodeMate-v0.1-Q4_K_M.gguf b/CodeMate-v0.1-Q4_K_M.gguf new file mode 100644 index 0000000..a000705 --- /dev/null +++ b/CodeMate-v0.1-Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:421d6ea43b8027be7a34303384b54f40028f01a686b8301e5be3c74bc30da7d4 +size 20219900160 diff --git a/CodeMate-v0.1-Q4_K_S.gguf b/CodeMate-v0.1-Q4_K_S.gguf new file mode 100644 index 0000000..43f686e --- /dev/null +++ b/CodeMate-v0.1-Q4_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7eca52072b86134e9cbf132437a13cff27cb03f9cc468b65f1a8d9bc22f4ad46 +size 19191509248 diff --git a/CodeMate-v0.1-Q5_K_M.gguf b/CodeMate-v0.1-Q5_K_M.gguf new file mode 100644 index 0000000..5f5f6ec --- /dev/null +++ b/CodeMate-v0.1-Q5_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27e7adc5f7f9b4821eb4befa2763ef2f113135c474e44ea1b0f1ab1a25234b1d +size 23838798080 diff --git a/CodeMate-v0.1-Q5_K_S.gguf b/CodeMate-v0.1-Q5_K_S.gguf new file mode 100644 index 0000000..1656574 --- /dev/null +++ b/CodeMate-v0.1-Q5_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3d415951fa78d34938498886de284d8e32f3b604beabff5949c63685cccb3e0 +size 23237177600 diff --git a/CodeMate-v0.1-Q6_K.gguf b/CodeMate-v0.1-Q6_K.gguf new file mode 100644 index 0000000..63c9997 --- /dev/null +++ b/CodeMate-v0.1-Q6_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59aa46b5223d2d0f6b0d98ea9c6b4a5b1ad6862d1905cfb2c29f0fbe61a9e4f7 +size 27683877120 diff --git a/CodeMate-v0.1-Q8_0.gguf b/CodeMate-v0.1-Q8_0.gguf new file mode 100644 index 0000000..372c992 --- /dev/null +++ b/CodeMate-v0.1-Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe92d02ee1243427c4a3ba1fb11da592d7dcf36394e07a056875f4bf22106628 +size 35856052480 diff --git a/README.md b/README.md new file mode 100644 index 0000000..ec54cd9 --- /dev/null +++ b/README.md @@ -0,0 +1,71 @@ +--- +license: llama2 +language: +- en +library_name: transformers +pipeline_tag: text-generation +tags: +- CodeMate +- Code +--- + +# **CodeMate-v0.1** + +CodeMate-v0.1 is an intelligent programming assistant developed by [CodeMate](https://codemate.ai). +This model aims to assist users in generating high-quality code solutions for programming problems. +Please note that this model is currently in version 0.1. + +## Model Details + +- **Training Data:** Exclusively fine-tuned on a proprietary dataset of 1.8 billion tokens of high-quality programming problems and solutions. +- The dataset was generated manually and is internal to CodeMate. + +- **Training Techniques:** The model was fine-tuned using Flash Attention 2, trained over 15 hours on 40 A100-80GB GPUs. +- A sequence length of 8096 tokens was used during training. + +- **Multilingual Support:** CodeMate-v0.1 is proficient in multiple programming languages, including Python, C/C++, TypeScript, Java, and more. + +## How to Get Started with the Model + +Make sure to install Transformers from the main git branch: + +```bash +pip install git+https://github.com/huggingface/transformers.git +``` + +## How to Prompt the Model + +This model accepts prompts in the Alpaca/Vicuna instruction format. For example: + +```markdown +### System Prompt +You are an intelligent programming assistant. + +### User Message +Implement a linked list in C++ + +### Assistant +... +``` + +## Load the Model: + +To load the model, utilize the following Python script: + +```python +from transformers import AutoTokenizer, AutoModelForCausalLM + +# Initialize the model +model_path = "codemateai/CodeMate-v0.1" +model = AutoModelForCausalLM.from_pretrained(model_path, device_map="auto") +tokenizer = AutoTokenizer.from_pretrained(model_path) + +# ... generate response ... + +``` + +## Bias, Risks, and Limitations + +This model has undergone very limited testing. CodeMate recommends additional safety testing before any real-world deployments. + +For more information and updates, visit the [CodeMate website](https://codemate.ai). \ No newline at end of file