Downloads · 30 days
46
54% of all-time downloads
sanchezalonsodavid17/DeepSeek_Light_V1
DeepSeek_Light_V1 is a machine learning model from sanchezalonsodavid17. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
46
54% of all-time downloads
All-time downloads
85
Public
Parameters
6.9B
3.9 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.9 GB · 100%
How the weights are stored.
U86.7B · 96%
From the Hugging Face model README
Based in the Basque Country 🇪🇸
DeepSeek-Light-V1 is a highly optimized version of DeepSeek-Coder-6.7B, designed to reduce GPU memory consumption and improve deployment feasibility. This optimization combines 4-bit quantization and pruning, significantly lowering the number of parameters while maintaining functional capabilities.
| Version | Model Size | GPU VRAM Usage | Parameters | Relative Performance |
|---|---|---|---|---|
| Original (DeepSeek-Coder-6.7B) | 3.51GB | 7.85GB | 6.7B | 100% |
| Optimized (DeepSeek-Light-V1) | 3.51GB | 3.93GB (50% reduction!) | 3.5B | ~50% performance |
✅ Runs on more affordable hardware – No need for high-end GPUs.
✅ Reduces operational costs – More efficient deployment.
✅ Enhances security – Enables local execution before moving to production.
You can load the model using transformers with quantization:
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch
# Load model and tokenizer
model_name = "sanchezalonsodavid17/DeepSeek_Light_V1"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
quantization_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True,
)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="auto",
quantization_config=quantization_config
)
# Generate text
def generate_text(prompt, max_length=100):
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
with torch.no_grad():
output = model.generate(**inputs, max_length=max_length)
return tokenizer.decode(output[0], skip_special_tokens=True)
# Example usage
prompt = "Explain how deep learning works in neural networks."
response = generate_text(prompt)
print(response)