CoolFace
Modelpublic

anysecret-io/anysecret-assistant

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes24downloads
Model Card

AnySecret Assistant - Multi-Model Collection

A specialized AI assistant collection for AnySecret configuration management, available in multiple sizes and formats optimized for different use cases and deployment scenarios.

๐Ÿš€ Available Models

ModelBase ModelParametersFormatBest ForMemory
3BLlama-3.2-3B-Instruct3BPyTorch/GGUFFast responses, edge deployment4-6GB
7BCodeLlama-7B-Instruct7BPyTorch/GGUFBalanced performance, code focus8-12GB
13BCodeLlama-13B-Instruct13BPyTorch/GGUFHighest quality, complex queries16-24GB

Model Variants

PyTorch Models (LoRA Adapters)
  • โ€”anysecret-io/anysecret-assistant/3B/ - Llama-3.2-3B base
  • โ€”anysecret-io/anysecret-assistant/7B/ - CodeLlama-7B base
  • โ€”anysecret-io/anysecret-assistant/13B/ - CodeLlama-13B base
GGUF Models (Quantized)
  • โ€”anysecret-io/anysecret-assistant/3B-GGUF/ - Q4KM, Q8_0 formats
  • โ€”anysecret-io/anysecret-assistant/7B-GGUF/ - Q4KM, Q8_0 formats
  • โ€”anysecret-io/anysecret-assistant/13B-GGUF/ - Q4KM, Q8_0 formats

๐ŸŽฏ Model Description

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.

  • โ€”Developed by: anysecret-io
  • โ€”Model type: Causal Language Model (LoRA Adapters + GGUF)
  • โ€”Language(s): English
  • โ€”License: MIT
  • โ€”Specialized for: Multi-cloud secrets and configuration management

๐Ÿ“ฆ Quick Start

Option 1: Using Ollama (Recommended for GGUF)

bash
# 7B model (balanced performance)
ollama pull anysecret-io/anysecret-assistant/7B-GGUF
ollama run anysecret-io/anysecret-assistant/7B-GGUF

# 13B model (best quality)
ollama pull anysecret-io/anysecret-assistant/13B-GGUF
ollama run anysecret-io/anysecret-assistant/13B-GGUF

Option 2: Using Transformers (PyTorch)

python
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

# Choose your model size (3B/7B/13B)
model_size = "7B"  # or "3B", "13B"
base_models = {
    "3B": "meta-llama/Llama-3.2-3B-Instruct",
    "7B": "codellama/CodeLlama-7b-Instruct-hf",
    "13B": "codellama/CodeLlama-13b-Instruct-hf"
}

base_model_name = base_models[model_size]
adapter_path = f"anysecret-io/anysecret-assistant/{model_size}"

# Load model
base_model = AutoModelForCausalLM.from_pretrained(
    base_model_name,
    torch_dtype=torch.float16,
    device_map="auto"
)
model = PeftModel.from_pretrained(base_model, adapter_path)
tokenizer = AutoTokenizer.from_pretrained(base_model_name)

# Generate response
def ask_anysecret(question):
    prompt = f"### Instruction:\n{question}\n\n### Response:\n"
    inputs = tokenizer(prompt, return_tensors="pt")
    outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.1)
    response = tokenizer.decode(outputs[0], skip_special_tokens=True)
    return response.split("### Response:\n")[-1].strip()

# Example usage
print(ask_anysecret("How do I configure AnySecret for AWS?"))

Option 3: Using llama.cpp (GGUF)

bash
# Download GGUF model
wget https://huggingface.co/anysecret-io/anysecret-assistant/resolve/main/7B-GGUF/anysecret-7b-q4_k_m.gguf

# Run with llama.cpp
./llama-server -m anysecret-7b-q4_k_m.gguf --port 8080

๐ŸŽฏ Use Cases

Direct Use

All models are designed to provide expert assistance with:

  • โ€”AnySecret CLI - Commands, usage patterns, troubleshooting
  • โ€”Multi-cloud Configuration - AWS Secrets Manager, GCP Secret Manager, Azure Key Vault
  • โ€”Kubernetes Integration - Secrets, ConfigMaps, operators
  • โ€”CI/CD Pipelines - GitHub Actions, Jenkins, GitLab CI
  • โ€”Python SDK - Implementation guidance, best practices
  • โ€”Security Patterns - Secret rotation, access controls, compliance

Example Queries

"How do I set up AnySecret with AWS Secrets Manager?"
"Show me how to use anysecret in a GitHub Actions workflow"
"How do I rotate secrets across multiple cloud providers?"
"What's the difference between storing secrets vs parameters?"
"How do I configure AnySecret for a Kubernetes deployment?"

๐Ÿ—๏ธ Training Details

Training Data

Models were trained on 150+ curated examples across 7 categories:

  • โ€”CLI Commands (25 examples) - Command usage and patterns
  • โ€”AWS Configuration (25 examples) - Secrets Manager integration
  • โ€”GCP Configuration (25 examples) - Secret Manager setup
  • โ€”Azure Configuration (25 examples) - Key Vault integration
  • โ€”Kubernetes (25 examples) - Secrets and ConfigMaps
  • โ€”CI/CD Integration (15 examples) - Pipeline workflows
  • โ€”Python Integration (10 examples) - SDK usage patterns

Training Configuration

Hyperparameters
  • โ€”LoRA Rank: 16
  • โ€”LoRA Alpha: 32
  • โ€”Learning Rate: 2e-4
  • โ€”Batch Size: 1 (with gradient accumulation)
  • โ€”Epochs: 2-3
  • โ€”Precision: fp16 mixed precision with 4-bit quantization
Target Modules
  • โ€”Llama-3.2 (3B): qproj, kproj, vproj, oproj, gateproj, upproj, down_proj
  • โ€”CodeLlama (7B/13B): qproj, kproj, vproj, oproj, gateproj, upproj, down_proj

๐Ÿ”ง Model Selection Guide

Choose 3B if you need:

  • โ€”โœ… Fast inference (< 1 second)
  • โ€”โœ… Low memory usage (4-6GB)
  • โ€”โœ… Edge deployment
  • โ€”โœ… Basic AnySecret queries

Choose 7B if you need:

  • โ€”โœ… Balanced performance/speed
  • โ€”โœ… Better code understanding
  • โ€”โœ… Moderate memory (8-12GB)
  • โ€”โœ… Complex configuration queries

Choose 13B if you need:

  • โ€”โœ… Highest quality responses
  • โ€”โœ… Complex multi-step guidance
  • โ€”โœ… Advanced troubleshooting
  • โ€”โœ… Production deployments

๐Ÿš€ Deployment Options

Local Development

  • โ€”GGUF + Ollama: Easiest setup, good performance
  • โ€”PyTorch + GPU: Best quality, requires CUDA

Production Deployment

  • โ€”Docker + llama.cpp: Scalable, CPU/GPU support
  • โ€”Kubernetes: Auto-scaling, load balancing
  • โ€”Cloud APIs: Serverless, pay-per-use

Memory Requirements

ModelGGUF Q4_K_MGGUF Q8_0PyTorch FP16
3B2.3GB3.2GB6GB
7B4.1GB7.2GB14GB
13B7.8GB13.8GB26GB

๐Ÿ“š Model Sources

  • โ€”Repository: https://github.com/anysecret-io/anysecret-lib
  • โ€”Documentation: https://docs.anysecret.io
  • โ€”Training Code: https://github.com/anysecret-io/anysecret-llm
  • โ€”Website: https://anysecret.io

๐Ÿ” Framework Versions

  • โ€”PEFT: 0.17.1+
  • โ€”Transformers: 4.35.0+
  • โ€”PyTorch: 2.0.0+
  • โ€”llama.cpp: Latest
  • โ€”Ollama: 0.1.0+

๐Ÿ“Š Performance Benchmarks

ModelTokens/secQuality ScoreMemory (GGUF Q4)
3B~457.2/102.3GB
7B~258.5/104.1GB
13B~159.1/107.8GB

Benchmarks run on RTX 3090 with GGUF Q4_K_M quantization

โš–๏ธ License

MIT License - See individual model folders for specific license details.


For support, visit our GitHub Issues or Documentation.