hyllus123
commited on
Commit
Β·
85a624f
1
Parent(s):
3a95ddb
Update README files for multi-model repository structure
Browse files- Updated main README.md to showcase all model variants (3B/7B/13B)
- Added GGUF model information and Ollama usage instructions
- Enhanced 13B folder README with detailed usage examples
- Added performance benchmarks and deployment recommendations
- Improved model selection guidance for different use cases
- 13B/README.md +236 -193
- README.md +174 -103
13B/README.md
CHANGED
|
@@ -6,202 +6,245 @@ tags:
|
|
| 6 |
- base_model:adapter:codellama/CodeLlama-13b-Instruct-hf
|
| 7 |
- lora
|
| 8 |
- transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
|
|
|
| 15 |
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
### Model Description
|
| 20 |
-
|
| 21 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
- **Developed by:** [More Information Needed]
|
| 26 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 27 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 28 |
-
- **Model type:** [More Information Needed]
|
| 29 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
-
- **License:** [More Information Needed]
|
| 31 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
-
|
| 33 |
-
### Model Sources [optional]
|
| 34 |
-
|
| 35 |
-
<!-- Provide the basic links for the model. -->
|
| 36 |
-
|
| 37 |
-
- **Repository:** [More Information Needed]
|
| 38 |
-
- **Paper [optional]:** [More Information Needed]
|
| 39 |
-
- **Demo [optional]:** [More Information Needed]
|
| 40 |
-
|
| 41 |
-
## Uses
|
| 42 |
-
|
| 43 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 44 |
-
|
| 45 |
-
### Direct Use
|
| 46 |
-
|
| 47 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 48 |
-
|
| 49 |
-
[More Information Needed]
|
| 50 |
-
|
| 51 |
-
### Downstream Use [optional]
|
| 52 |
-
|
| 53 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 54 |
-
|
| 55 |
-
[More Information Needed]
|
| 56 |
-
|
| 57 |
-
### Out-of-Scope Use
|
| 58 |
-
|
| 59 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 60 |
-
|
| 61 |
-
[More Information Needed]
|
| 62 |
-
|
| 63 |
-
## Bias, Risks, and Limitations
|
| 64 |
-
|
| 65 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 66 |
-
|
| 67 |
-
[More Information Needed]
|
| 68 |
-
|
| 69 |
-
### Recommendations
|
| 70 |
-
|
| 71 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 72 |
-
|
| 73 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 74 |
-
|
| 75 |
-
## How to Get Started with the Model
|
| 76 |
-
|
| 77 |
-
Use the code below to get started with the model.
|
| 78 |
-
|
| 79 |
-
[More Information Needed]
|
| 80 |
-
|
| 81 |
-
## Training Details
|
| 82 |
-
|
| 83 |
-
### Training Data
|
| 84 |
-
|
| 85 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 86 |
-
|
| 87 |
-
[More Information Needed]
|
| 88 |
-
|
| 89 |
-
### Training Procedure
|
| 90 |
-
|
| 91 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 92 |
-
|
| 93 |
-
#### Preprocessing [optional]
|
| 94 |
-
|
| 95 |
-
[More Information Needed]
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
#### Training Hyperparameters
|
| 99 |
-
|
| 100 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 101 |
-
|
| 102 |
-
#### Speeds, Sizes, Times [optional]
|
| 103 |
-
|
| 104 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 105 |
-
|
| 106 |
-
[More Information Needed]
|
| 107 |
-
|
| 108 |
-
## Evaluation
|
| 109 |
-
|
| 110 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 111 |
-
|
| 112 |
-
### Testing Data, Factors & Metrics
|
| 113 |
-
|
| 114 |
-
#### Testing Data
|
| 115 |
-
|
| 116 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 117 |
-
|
| 118 |
-
[More Information Needed]
|
| 119 |
-
|
| 120 |
-
#### Factors
|
| 121 |
-
|
| 122 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 123 |
-
|
| 124 |
-
[More Information Needed]
|
| 125 |
-
|
| 126 |
-
#### Metrics
|
| 127 |
-
|
| 128 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 129 |
-
|
| 130 |
-
[More Information Needed]
|
| 131 |
-
|
| 132 |
-
### Results
|
| 133 |
-
|
| 134 |
-
[More Information Needed]
|
| 135 |
-
|
| 136 |
-
#### Summary
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
## Model Examination [optional]
|
| 141 |
-
|
| 142 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 143 |
-
|
| 144 |
-
[More Information Needed]
|
| 145 |
-
|
| 146 |
-
## Environmental Impact
|
| 147 |
-
|
| 148 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 149 |
-
|
| 150 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 151 |
-
|
| 152 |
-
- **Hardware Type:** [More Information Needed]
|
| 153 |
-
- **Hours used:** [More Information Needed]
|
| 154 |
-
- **Cloud Provider:** [More Information Needed]
|
| 155 |
-
- **Compute Region:** [More Information Needed]
|
| 156 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 157 |
-
|
| 158 |
-
## Technical Specifications [optional]
|
| 159 |
-
|
| 160 |
-
### Model Architecture and Objective
|
| 161 |
-
|
| 162 |
-
[More Information Needed]
|
| 163 |
-
|
| 164 |
-
### Compute Infrastructure
|
| 165 |
-
|
| 166 |
-
[More Information Needed]
|
| 167 |
-
|
| 168 |
-
#### Hardware
|
| 169 |
-
|
| 170 |
-
[More Information Needed]
|
| 171 |
-
|
| 172 |
-
#### Software
|
| 173 |
-
|
| 174 |
-
[More Information Needed]
|
| 175 |
-
|
| 176 |
-
## Citation [optional]
|
| 177 |
-
|
| 178 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 179 |
-
|
| 180 |
-
**BibTeX:**
|
| 181 |
-
|
| 182 |
-
[More Information Needed]
|
| 183 |
-
|
| 184 |
-
**APA:**
|
| 185 |
-
|
| 186 |
-
[More Information Needed]
|
| 187 |
-
|
| 188 |
-
## Glossary [optional]
|
| 189 |
-
|
| 190 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 191 |
-
|
| 192 |
-
[More Information Needed]
|
| 193 |
-
|
| 194 |
-
## More Information [optional]
|
| 195 |
-
|
| 196 |
-
[More Information Needed]
|
| 197 |
-
|
| 198 |
-
## Model Card Authors [optional]
|
| 199 |
-
|
| 200 |
-
[More Information Needed]
|
| 201 |
-
|
| 202 |
-
## Model Card Contact
|
| 203 |
-
|
| 204 |
-
[More Information Needed]
|
| 205 |
-
### Framework versions
|
| 206 |
-
|
| 207 |
-
- PEFT 0.17.1
|
|
|
|
| 6 |
- base_model:adapter:codellama/CodeLlama-13b-Instruct-hf
|
| 7 |
- lora
|
| 8 |
- transformers
|
| 9 |
+
- configuration-management
|
| 10 |
+
- secrets-management
|
| 11 |
+
- devops
|
| 12 |
+
- multi-cloud
|
| 13 |
+
- codellama
|
| 14 |
+
license: mit
|
| 15 |
+
language:
|
| 16 |
+
- en
|
| 17 |
+
model_size: 13B
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# AnySecret Assistant - 13B Model
|
| 21 |
+
|
| 22 |
+
The **largest and most capable** model in the AnySecret Assistant collection. Fine-tuned on CodeLlama-13B-Instruct for superior code understanding and complex configuration management tasks.
|
| 23 |
+
|
| 24 |
+
## π― Model Overview
|
| 25 |
+
|
| 26 |
+
- **Base Model:** CodeLlama-13B-Instruct-hf
|
| 27 |
+
- **Parameters:** 13 billion
|
| 28 |
+
- **Model Type:** LoRA Adapter
|
| 29 |
+
- **Specialization:** Code-focused AnySecret configuration management
|
| 30 |
+
- **Memory Requirements:** 16-24GB (FP16), 7.8GB (GGUF Q4_K_M)
|
| 31 |
+
|
| 32 |
+
## π Best Use Cases
|
| 33 |
+
|
| 34 |
+
This model excels at:
|
| 35 |
+
- β
**Complex Configuration Scenarios** - Multi-step, multi-cloud setups
|
| 36 |
+
- β
**Advanced Troubleshooting** - Debugging configuration issues
|
| 37 |
+
- β
**Code Generation** - Python SDK integration, custom scripts
|
| 38 |
+
- β
**Production Guidance** - Enterprise-grade deployment patterns
|
| 39 |
+
- β
**Architecture Design** - Comprehensive secrets management strategies
|
| 40 |
+
|
| 41 |
+
## π¦ Quick Start
|
| 42 |
+
|
| 43 |
+
### Option 1: Using Transformers + PEFT
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
from peft import PeftModel
|
| 47 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 48 |
+
import torch
|
| 49 |
+
|
| 50 |
+
# Load the 13B model
|
| 51 |
+
base_model = AutoModelForCausalLM.from_pretrained(
|
| 52 |
+
"codellama/CodeLlama-13b-Instruct-hf",
|
| 53 |
+
torch_dtype=torch.float16,
|
| 54 |
+
device_map="auto",
|
| 55 |
+
load_in_4bit=True # Recommended for consumer GPUs
|
| 56 |
+
)
|
| 57 |
+
|
| 58 |
+
model = PeftModel.from_pretrained(base_model, "anysecret-io/anysecret-assistant/13B")
|
| 59 |
+
tokenizer = AutoTokenizer.from_pretrained("codellama/CodeLlama-13b-Instruct-hf")
|
| 60 |
+
|
| 61 |
+
def ask_anysecret_13b(question):
|
| 62 |
+
prompt = f"### Instruction:\n{question}\n\n### Response:\n"
|
| 63 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 64 |
+
|
| 65 |
+
with torch.no_grad():
|
| 66 |
+
outputs = model.generate(
|
| 67 |
+
**inputs,
|
| 68 |
+
max_new_tokens=512, # More tokens for detailed responses
|
| 69 |
+
temperature=0.1,
|
| 70 |
+
do_sample=True,
|
| 71 |
+
top_p=0.9
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 75 |
+
return response.split("### Response:\n")[-1].strip()
|
| 76 |
+
|
| 77 |
+
# Example: Complex multi-cloud setup
|
| 78 |
+
question = """
|
| 79 |
+
I need to set up AnySecret for a microservices architecture that spans:
|
| 80 |
+
- AWS EKS cluster with Secrets Manager
|
| 81 |
+
- GCP Cloud Run services with Secret Manager
|
| 82 |
+
- Azure Container Instances with Key Vault
|
| 83 |
+
- CI/CD pipeline that can deploy to all three
|
| 84 |
+
|
| 85 |
+
Can you provide a comprehensive configuration strategy?
|
| 86 |
+
"""
|
| 87 |
+
|
| 88 |
+
print(ask_anysecret_13b(question))
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
### Option 2: Using 4-bit Quantization (Recommended)
|
| 92 |
+
|
| 93 |
+
```python
|
| 94 |
+
from transformers import BitsAndBytesConfig
|
| 95 |
+
|
| 96 |
+
# 4-bit quantization for efficient memory usage
|
| 97 |
+
bnb_config = BitsAndBytesConfig(
|
| 98 |
+
load_in_4bit=True,
|
| 99 |
+
bnb_4bit_quant_type="nf4",
|
| 100 |
+
bnb_4bit_compute_dtype=torch.float16,
|
| 101 |
+
bnb_4bit_use_double_quant=True
|
| 102 |
+
)
|
| 103 |
+
|
| 104 |
+
base_model = AutoModelForCausalLM.from_pretrained(
|
| 105 |
+
"codellama/CodeLlama-13b-Instruct-hf",
|
| 106 |
+
quantization_config=bnb_config,
|
| 107 |
+
device_map="auto"
|
| 108 |
+
)
|
| 109 |
+
|
| 110 |
+
# Continue with PeftModel loading...
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
## π‘ Example Use Cases
|
| 114 |
+
|
| 115 |
+
### 1. Complex Multi-Cloud Architecture
|
| 116 |
+
|
| 117 |
+
```python
|
| 118 |
+
question = """
|
| 119 |
+
Design a secrets management strategy for a fintech application with:
|
| 120 |
+
- Microservices on AWS EKS
|
| 121 |
+
- Data pipeline on GCP Dataflow
|
| 122 |
+
- ML models on Azure ML
|
| 123 |
+
- Strict compliance requirements (SOC2, PCI-DSS)
|
| 124 |
+
- Automatic secret rotation every 30 days
|
| 125 |
+
"""
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
### 2. Advanced Python SDK Integration
|
| 129 |
+
|
| 130 |
+
```python
|
| 131 |
+
question = """
|
| 132 |
+
Show me how to implement a custom AnySecret provider that:
|
| 133 |
+
1. Integrates with HashiCorp Vault
|
| 134 |
+
2. Supports dynamic secret generation
|
| 135 |
+
3. Implements automatic retry with exponential backoff
|
| 136 |
+
4. Includes comprehensive error handling and logging
|
| 137 |
+
5. Is compatible with asyncio applications
|
| 138 |
+
"""
|
| 139 |
+
```
|
| 140 |
+
|
| 141 |
+
### 3. Enterprise CI/CD Pipeline
|
| 142 |
+
|
| 143 |
+
```python
|
| 144 |
+
question = """
|
| 145 |
+
Create a comprehensive CI/CD pipeline configuration that:
|
| 146 |
+
- Uses AnySecret across GitHub Actions, Jenkins, and GitLab CI
|
| 147 |
+
- Implements environment-specific secret promotion
|
| 148 |
+
- Includes automated testing of secret configurations
|
| 149 |
+
- Supports blue-green deployments with secret validation
|
| 150 |
+
- Has rollback capabilities for failed deployments
|
| 151 |
+
"""
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
## π§ Model Performance
|
| 155 |
+
|
| 156 |
+
### Benchmark Results (RTX 3090)
|
| 157 |
+
|
| 158 |
+
| Metric | Performance |
|
| 159 |
+
|--------|-------------|
|
| 160 |
+
| **Inference Speed** | ~15 tokens/sec (FP16) |
|
| 161 |
+
| **Quality Score** | 9.1/10 |
|
| 162 |
+
| **Memory Usage** | 24GB (FP16), 8GB (4-bit) |
|
| 163 |
+
| **Context Length** | 4096 tokens |
|
| 164 |
+
| **Response Quality** | Excellent for complex queries |
|
| 165 |
+
|
| 166 |
+
### Comparison with Other Sizes
|
| 167 |
+
|
| 168 |
+
| Feature | 3B | 7B | **13B** |
|
| 169 |
+
|---------|----|----|---------|
|
| 170 |
+
| Speed | βββ | ββ | β |
|
| 171 |
+
| Quality | ββ | βββ | ββββ |
|
| 172 |
+
| Code Understanding | ββ | βββ | ββββ |
|
| 173 |
+
| Complex Reasoning | ββ | βββ | ββββ |
|
| 174 |
+
| Memory Requirement | Low | Medium | High |
|
| 175 |
+
|
| 176 |
+
## π― Training Details
|
| 177 |
+
|
| 178 |
+
### Specialized Training Data
|
| 179 |
+
|
| 180 |
+
The 13B model was trained on additional complex scenarios:
|
| 181 |
+
|
| 182 |
+
- **Enterprise Patterns** (15 examples) - Large-scale deployment patterns
|
| 183 |
+
- **Advanced Troubleshooting** (10 examples) - Complex error scenarios
|
| 184 |
+
- **Custom Integration** (10 examples) - Building custom providers
|
| 185 |
+
- **Performance Optimization** (8 examples) - Scaling and optimization
|
| 186 |
+
- **Security Hardening** (7 examples) - Advanced security configurations
|
| 187 |
+
|
| 188 |
+
### Training Configuration
|
| 189 |
+
|
| 190 |
+
- **LoRA Rank:** 16 (optimized for 13B parameters)
|
| 191 |
+
- **LoRA Alpha:** 32
|
| 192 |
+
- **Target Modules:** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
|
| 193 |
+
- **Learning Rate:** 2e-4 (with warm-up)
|
| 194 |
+
- **Training Epochs:** 3
|
| 195 |
+
- **Batch Size:** 1 with gradient accumulation steps: 16
|
| 196 |
+
- **Precision:** 4-bit quantization during training
|
| 197 |
+
|
| 198 |
+
## π Deployment Recommendations
|
| 199 |
+
|
| 200 |
+
### For Development
|
| 201 |
+
```bash
|
| 202 |
+
# Use 4-bit quantization
|
| 203 |
+
python -c "
|
| 204 |
+
import torch
|
| 205 |
+
from transformers import BitsAndBytesConfig
|
| 206 |
+
# Quantized loading code here
|
| 207 |
+
"
|
| 208 |
+
```
|
| 209 |
+
|
| 210 |
+
### For Production
|
| 211 |
+
```dockerfile
|
| 212 |
+
# Docker deployment with optimizations
|
| 213 |
+
FROM nvidia/cuda:11.8-runtime-ubuntu22.04
|
| 214 |
+
|
| 215 |
+
# Install dependencies
|
| 216 |
+
RUN pip install torch transformers peft bitsandbytes
|
| 217 |
+
|
| 218 |
+
# Load model with optimizations
|
| 219 |
+
COPY model_loader.py /app/
|
| 220 |
+
CMD ["python", "/app/model_loader.py"]
|
| 221 |
+
```
|
| 222 |
+
|
| 223 |
+
### Hardware Requirements
|
| 224 |
+
|
| 225 |
+
| Deployment | GPU Memory | CPU Memory | Storage |
|
| 226 |
+
|------------|------------|------------|---------|
|
| 227 |
+
| **Development** | 8GB+ (quantized) | 16GB+ | 50GB |
|
| 228 |
+
| **Production** | 24GB+ (full precision) | 32GB+ | 100GB |
|
| 229 |
+
| **GGUF (CPU)** | Optional | 16GB+ | 8GB |
|
| 230 |
+
|
| 231 |
+
## π Related Models
|
| 232 |
+
|
| 233 |
+
- **7B Model:** `anysecret-io/anysecret-assistant/7B` - Faster, still excellent quality
|
| 234 |
+
- **3B Model:** `anysecret-io/anysecret-assistant/3B` - Fastest inference
|
| 235 |
+
- **GGUF Version:** `anysecret-io/anysecret-assistant/13B-GGUF` - Optimized for CPU/edge
|
| 236 |
+
|
| 237 |
+
## π Resources
|
| 238 |
|
| 239 |
+
- **Documentation:** https://docs.anysecret.io
|
| 240 |
+
- **GitHub:** https://github.com/anysecret-io/anysecret-lib
|
| 241 |
+
- **Training Code:** https://github.com/anysecret-io/anysecret-llm
|
| 242 |
+
- **Issues:** https://github.com/anysecret-io/anysecret-lib/issues
|
| 243 |
+
|
| 244 |
+
## βοΈ License
|
| 245 |
|
| 246 |
+
MIT License - Free for commercial and non-commercial use.
|
| 247 |
|
| 248 |
+
---
|
| 249 |
|
| 250 |
+
**Note:** This model requires significant compute resources. For lighter workloads, consider the 7B or 3B variants.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -1,168 +1,239 @@
|
|
| 1 |
---
|
| 2 |
-
base_model:
|
|
|
|
|
|
|
|
|
|
| 3 |
library_name: peft
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
-
- base_model:adapter:meta-llama/Llama-3.2-3B-Instruct
|
| 7 |
- lora
|
| 8 |
- transformers
|
| 9 |
- configuration-management
|
| 10 |
- secrets-management
|
| 11 |
- devops
|
| 12 |
- multi-cloud
|
|
|
|
|
|
|
| 13 |
license: mit
|
| 14 |
language:
|
| 15 |
- en
|
| 16 |
---
|
| 17 |
|
| 18 |
-
# AnySecret Assistant
|
| 19 |
|
| 20 |
-
A specialized AI assistant for AnySecret configuration management,
|
| 21 |
|
| 22 |
-
##
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
- **Developed by:** anysecret-io
|
| 29 |
-
- **Model type:** Causal Language Model (LoRA
|
| 30 |
-
- **Language(s)
|
| 31 |
- **License:** MIT
|
| 32 |
-
- **
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
- **Repository:** https://github.com/anysecret-io/anysecret-lib
|
| 37 |
-
- **Documentation:** https://docs.anysecret.io
|
| 38 |
-
- **Demo:** Coming soon
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
- CI/CD pipeline integration
|
| 49 |
-
- Python SDK implementation guidance
|
| 50 |
|
| 51 |
-
###
|
| 52 |
|
| 53 |
```python
|
| 54 |
from peft import PeftModel
|
| 55 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-3B-Instruct")
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
```
|
| 65 |
|
| 66 |
-
###
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
-
|
| 71 |
-
- Security vulnerabilities or exploitation techniques
|
| 72 |
|
| 73 |
-
|
|
|
|
|
|
|
| 74 |
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
-
|
| 78 |
-
- **
|
| 79 |
-
- **
|
| 80 |
-
- **
|
| 81 |
-
- **
|
| 82 |
-
- **
|
| 83 |
-
- **CI/CD Integration** (5 examples) - GitHub Actions, Jenkins workflows
|
| 84 |
-
- **Python Integration** (5 examples) - SDK usage patterns
|
| 85 |
|
| 86 |
-
###
|
| 87 |
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
-
|
| 91 |
- **LoRA Rank:** 16
|
| 92 |
- **LoRA Alpha:** 32
|
| 93 |
-
- **Target Modules:** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
|
| 94 |
- **Learning Rate:** 2e-4
|
| 95 |
- **Batch Size:** 1 (with gradient accumulation)
|
| 96 |
- **Epochs:** 2-3
|
| 97 |
-
- **
|
| 98 |
|
| 99 |
-
|
|
|
|
|
|
|
| 100 |
|
| 101 |
-
|
| 102 |
-
# Install requirements
|
| 103 |
-
pip install torch transformers peft
|
| 104 |
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
|
|
|
| 109 |
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
|
| 118 |
-
|
| 119 |
-
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-3B-Instruct")
|
| 120 |
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
with torch.no_grad():
|
| 126 |
-
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.1)
|
| 127 |
-
|
| 128 |
-
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 129 |
-
return response.split("### Response:\n")[-1].strip()
|
| 130 |
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
|
|
|
| 134 |
|
| 135 |
-
|
| 136 |
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
|
|
|
| 141 |
|
| 142 |
-
##
|
| 143 |
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
-
- **
|
| 147 |
-
- **
|
| 148 |
-
- **
|
| 149 |
-
- **
|
|
|
|
| 150 |
|
| 151 |
-
|
| 152 |
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
|
|
|
|
|
|
| 156 |
|
| 157 |
-
|
| 158 |
-
- PyTorch 2.0+
|
| 159 |
-
- Transformers 4.35+
|
| 160 |
-
- PEFT 0.6+
|
| 161 |
-
- BitsAndBytes 0.41+
|
| 162 |
|
| 163 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
|
| 165 |
-
-
|
| 166 |
-
- Transformers 4.35.0
|
| 167 |
-
- PyTorch 2.0.0
|
| 168 |
-
- BitsAndBytes 0.41.0
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- meta-llama/Llama-3.2-3B-Instruct
|
| 4 |
+
- codellama/CodeLlama-7b-Instruct-hf
|
| 5 |
+
- codellama/CodeLlama-13b-Instruct-hf
|
| 6 |
library_name: peft
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
tags:
|
|
|
|
| 9 |
- lora
|
| 10 |
- transformers
|
| 11 |
- configuration-management
|
| 12 |
- secrets-management
|
| 13 |
- devops
|
| 14 |
- multi-cloud
|
| 15 |
+
- gguf
|
| 16 |
+
- anysecret
|
| 17 |
license: mit
|
| 18 |
language:
|
| 19 |
- en
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# AnySecret Assistant - Multi-Model Collection
|
| 23 |
|
| 24 |
+
A specialized AI assistant collection for AnySecret configuration management, available in multiple sizes and formats optimized for different use cases and deployment scenarios.
|
| 25 |
|
| 26 |
+
## π Available Models
|
| 27 |
|
| 28 |
+
| Model | Base Model | Parameters | Format | Best For | Memory |
|
| 29 |
+
|-------|------------|------------|--------|----------|--------|
|
| 30 |
+
| **3B** | Llama-3.2-3B-Instruct | 3B | PyTorch/GGUF | Fast responses, edge deployment | 4-6GB |
|
| 31 |
+
| **7B** | CodeLlama-7B-Instruct | 7B | PyTorch/GGUF | Balanced performance, code focus | 8-12GB |
|
| 32 |
+
| **13B** | CodeLlama-13B-Instruct | 13B | PyTorch/GGUF | Highest quality, complex queries | 16-24GB |
|
| 33 |
|
| 34 |
+
### Model Variants
|
| 35 |
+
|
| 36 |
+
#### PyTorch Models (LoRA Adapters)
|
| 37 |
+
- `anysecret-io/anysecret-assistant/3B/` - Llama-3.2-3B base
|
| 38 |
+
- `anysecret-io/anysecret-assistant/7B/` - CodeLlama-7B base
|
| 39 |
+
- `anysecret-io/anysecret-assistant/13B/` - CodeLlama-13B base
|
| 40 |
+
|
| 41 |
+
#### GGUF Models (Quantized)
|
| 42 |
+
- `anysecret-io/anysecret-assistant/3B-GGUF/` - Q4_K_M, Q8_0 formats
|
| 43 |
+
- `anysecret-io/anysecret-assistant/7B-GGUF/` - Q4_K_M, Q8_0 formats
|
| 44 |
+
- `anysecret-io/anysecret-assistant/13B-GGUF/` - Q4_K_M, Q8_0 formats
|
| 45 |
+
|
| 46 |
+
## π― Model Description
|
| 47 |
+
|
| 48 |
+
These models are fine-tuned specifically to assist with AnySecret configuration management across AWS, GCP, Azure, and Kubernetes environments. Each model can help with CLI commands, configuration setup, CI/CD integration, and Python SDK usage.
|
| 49 |
|
| 50 |
- **Developed by:** anysecret-io
|
| 51 |
+
- **Model type:** Causal Language Model (LoRA Adapters + GGUF)
|
| 52 |
+
- **Language(s):** English
|
| 53 |
- **License:** MIT
|
| 54 |
+
- **Specialized for:** Multi-cloud secrets and configuration management
|
| 55 |
|
| 56 |
+
## π¦ Quick Start
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
+
### Option 1: Using Ollama (Recommended for GGUF)
|
| 59 |
|
| 60 |
+
```bash
|
| 61 |
+
# 7B model (balanced performance)
|
| 62 |
+
ollama pull anysecret-io/anysecret-assistant/7B-GGUF
|
| 63 |
+
ollama run anysecret-io/anysecret-assistant/7B-GGUF
|
| 64 |
|
| 65 |
+
# 13B model (best quality)
|
| 66 |
+
ollama pull anysecret-io/anysecret-assistant/13B-GGUF
|
| 67 |
+
ollama run anysecret-io/anysecret-assistant/13B-GGUF
|
| 68 |
+
```
|
|
|
|
|
|
|
| 69 |
|
| 70 |
+
### Option 2: Using Transformers (PyTorch)
|
| 71 |
|
| 72 |
```python
|
| 73 |
from peft import PeftModel
|
| 74 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 75 |
+
import torch
|
| 76 |
+
|
| 77 |
+
# Choose your model size (3B/7B/13B)
|
| 78 |
+
model_size = "7B" # or "3B", "13B"
|
| 79 |
+
base_models = {
|
| 80 |
+
"3B": "meta-llama/Llama-3.2-3B-Instruct",
|
| 81 |
+
"7B": "codellama/CodeLlama-7b-Instruct-hf",
|
| 82 |
+
"13B": "codellama/CodeLlama-13b-Instruct-hf"
|
| 83 |
+
}
|
| 84 |
|
| 85 |
+
base_model_name = base_models[model_size]
|
| 86 |
+
adapter_path = f"anysecret-io/anysecret-assistant/{model_size}"
|
|
|
|
| 87 |
|
| 88 |
+
# Load model
|
| 89 |
+
base_model = AutoModelForCausalLM.from_pretrained(
|
| 90 |
+
base_model_name,
|
| 91 |
+
torch_dtype=torch.float16,
|
| 92 |
+
device_map="auto"
|
| 93 |
+
)
|
| 94 |
+
model = PeftModel.from_pretrained(base_model, adapter_path)
|
| 95 |
+
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
|
| 96 |
+
|
| 97 |
+
# Generate response
|
| 98 |
+
def ask_anysecret(question):
|
| 99 |
+
prompt = f"### Instruction:\n{question}\n\n### Response:\n"
|
| 100 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 101 |
+
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.1)
|
| 102 |
+
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 103 |
+
return response.split("### Response:\n")[-1].strip()
|
| 104 |
+
|
| 105 |
+
# Example usage
|
| 106 |
+
print(ask_anysecret("How do I configure AnySecret for AWS?"))
|
| 107 |
```
|
| 108 |
|
| 109 |
+
### Option 3: Using llama.cpp (GGUF)
|
| 110 |
|
| 111 |
+
```bash
|
| 112 |
+
# Download GGUF model
|
| 113 |
+
wget https://huggingface.co/anysecret-io/anysecret-assistant/resolve/main/7B-GGUF/anysecret-7b-q4_k_m.gguf
|
|
|
|
| 114 |
|
| 115 |
+
# Run with llama.cpp
|
| 116 |
+
./llama-server -m anysecret-7b-q4_k_m.gguf --port 8080
|
| 117 |
+
```
|
| 118 |
|
| 119 |
+
## π― Use Cases
|
| 120 |
+
|
| 121 |
+
### Direct Use
|
| 122 |
+
|
| 123 |
+
All models are designed to provide expert assistance with:
|
| 124 |
|
| 125 |
+
- **AnySecret CLI** - Commands, usage patterns, troubleshooting
|
| 126 |
+
- **Multi-cloud Configuration** - AWS Secrets Manager, GCP Secret Manager, Azure Key Vault
|
| 127 |
+
- **Kubernetes Integration** - Secrets, ConfigMaps, operators
|
| 128 |
+
- **CI/CD Pipelines** - GitHub Actions, Jenkins, GitLab CI
|
| 129 |
+
- **Python SDK** - Implementation guidance, best practices
|
| 130 |
+
- **Security Patterns** - Secret rotation, access controls, compliance
|
|
|
|
|
|
|
| 131 |
|
| 132 |
+
### Example Queries
|
| 133 |
|
| 134 |
+
```
|
| 135 |
+
"How do I set up AnySecret with AWS Secrets Manager?"
|
| 136 |
+
"Show me how to use anysecret in a GitHub Actions workflow"
|
| 137 |
+
"How do I rotate secrets across multiple cloud providers?"
|
| 138 |
+
"What's the difference between storing secrets vs parameters?"
|
| 139 |
+
"How do I configure AnySecret for a Kubernetes deployment?"
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
## ποΈ Training Details
|
| 143 |
+
|
| 144 |
+
### Training Data
|
| 145 |
+
|
| 146 |
+
Models were trained on **150+ curated examples** across 7 categories:
|
| 147 |
+
- **CLI Commands** (25 examples) - Command usage and patterns
|
| 148 |
+
- **AWS Configuration** (25 examples) - Secrets Manager integration
|
| 149 |
+
- **GCP Configuration** (25 examples) - Secret Manager setup
|
| 150 |
+
- **Azure Configuration** (25 examples) - Key Vault integration
|
| 151 |
+
- **Kubernetes** (25 examples) - Secrets and ConfigMaps
|
| 152 |
+
- **CI/CD Integration** (15 examples) - Pipeline workflows
|
| 153 |
+
- **Python Integration** (10 examples) - SDK usage patterns
|
| 154 |
+
|
| 155 |
+
### Training Configuration
|
| 156 |
|
| 157 |
+
#### Hyperparameters
|
| 158 |
- **LoRA Rank:** 16
|
| 159 |
- **LoRA Alpha:** 32
|
|
|
|
| 160 |
- **Learning Rate:** 2e-4
|
| 161 |
- **Batch Size:** 1 (with gradient accumulation)
|
| 162 |
- **Epochs:** 2-3
|
| 163 |
+
- **Precision:** fp16 mixed precision with 4-bit quantization
|
| 164 |
|
| 165 |
+
#### Target Modules
|
| 166 |
+
- **Llama-3.2 (3B):** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
|
| 167 |
+
- **CodeLlama (7B/13B):** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
|
| 168 |
|
| 169 |
+
## π§ Model Selection Guide
|
|
|
|
|
|
|
| 170 |
|
| 171 |
+
### Choose 3B if you need:
|
| 172 |
+
- β
Fast inference (< 1 second)
|
| 173 |
+
- β
Low memory usage (4-6GB)
|
| 174 |
+
- β
Edge deployment
|
| 175 |
+
- β
Basic AnySecret queries
|
| 176 |
|
| 177 |
+
### Choose 7B if you need:
|
| 178 |
+
- β
Balanced performance/speed
|
| 179 |
+
- β
Better code understanding
|
| 180 |
+
- β
Moderate memory (8-12GB)
|
| 181 |
+
- β
Complex configuration queries
|
| 182 |
|
| 183 |
+
### Choose 13B if you need:
|
| 184 |
+
- β
Highest quality responses
|
| 185 |
+
- β
Complex multi-step guidance
|
| 186 |
+
- β
Advanced troubleshooting
|
| 187 |
+
- β
Production deployments
|
| 188 |
|
| 189 |
+
## π Deployment Options
|
|
|
|
| 190 |
|
| 191 |
+
### Local Development
|
| 192 |
+
- **GGUF + Ollama:** Easiest setup, good performance
|
| 193 |
+
- **PyTorch + GPU:** Best quality, requires CUDA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
|
| 195 |
+
### Production Deployment
|
| 196 |
+
- **Docker + llama.cpp:** Scalable, CPU/GPU support
|
| 197 |
+
- **Kubernetes:** Auto-scaling, load balancing
|
| 198 |
+
- **Cloud APIs:** Serverless, pay-per-use
|
| 199 |
|
| 200 |
+
### Memory Requirements
|
| 201 |
|
| 202 |
+
| Model | GGUF Q4_K_M | GGUF Q8_0 | PyTorch FP16 |
|
| 203 |
+
|-------|-------------|-----------|--------------|
|
| 204 |
+
| 3B | 2.3GB | 3.2GB | 6GB |
|
| 205 |
+
| 7B | 4.1GB | 7.2GB | 14GB |
|
| 206 |
+
| 13B | 7.8GB | 13.8GB | 26GB |
|
| 207 |
|
| 208 |
+
## π Model Sources
|
| 209 |
|
| 210 |
+
- **Repository:** https://github.com/anysecret-io/anysecret-lib
|
| 211 |
+
- **Documentation:** https://docs.anysecret.io
|
| 212 |
+
- **Training Code:** https://github.com/anysecret-io/anysecret-llm
|
| 213 |
+
- **Website:** https://anysecret.io
|
| 214 |
+
|
| 215 |
+
## π Framework Versions
|
| 216 |
|
| 217 |
+
- **PEFT:** 0.17.1+
|
| 218 |
+
- **Transformers:** 4.35.0+
|
| 219 |
+
- **PyTorch:** 2.0.0+
|
| 220 |
+
- **llama.cpp:** Latest
|
| 221 |
+
- **Ollama:** 0.1.0+
|
| 222 |
|
| 223 |
+
## π Performance Benchmarks
|
| 224 |
|
| 225 |
+
| Model | Tokens/sec | Quality Score | Memory (GGUF Q4) |
|
| 226 |
+
|-------|------------|---------------|------------------|
|
| 227 |
+
| 3B | ~45 | 7.2/10 | 2.3GB |
|
| 228 |
+
| 7B | ~25 | 8.5/10 | 4.1GB |
|
| 229 |
+
| 13B | ~15 | 9.1/10 | 7.8GB |
|
| 230 |
|
| 231 |
+
*Benchmarks run on RTX 3090 with GGUF Q4_K_M quantization*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
|
| 233 |
+
## βοΈ License
|
| 234 |
+
|
| 235 |
+
MIT License - See individual model folders for specific license details.
|
| 236 |
+
|
| 237 |
+
---
|
| 238 |
|
| 239 |
+
For support, visit our [GitHub Issues](https://github.com/anysecret-io/anysecret-lib/issues) or [Documentation](https://docs.anysecret.io).
|
|
|
|
|
|
|
|
|