Downloads · 30 days
22
23% of all-time downloads
Noorhan/DeepSeek-16b-light
DeepSeek-16b-light is a machine learning model from Noorhan. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a 4-bit quantized version of the DeepSeek Coder V2 Lite Instruct model. The quantization was performed using the bitsandbytes library with 4-bit precision to reduce the model size and memory requirements while…
Downloads · 30 days
22
23% of all-time downloads
All-time downloads
97
Public
Parameters
16.2B
8.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.7 GB · 100%
How the weights are stored.
U815.8B · 97%
From the Hugging Face model README
This is a 4-bit quantized version of the DeepSeek Coder V2 Lite Instruct model. The quantization was performed using the bitsandbytes library with 4-bit precision to reduce the model size and memory requirements while maintaining most of its capabilities.
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load the model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Noorhan/DeepSeek-16b-light")
model = AutoModelForCausalLM.from_pretrained("Noorhan/DeepSeek-16b-light", device_map="auto")
# Example code generation
prompt = """
Write a Python function to calculate the Fibonacci sequence up to n terms.
"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
inputs.input_ids,
max_length=500,
temperature=0.7,
top_p=0.95,
do_sample=True
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This 4-bit quantized model:
This model is a quantized version of DeepSeek Coder V2 Lite Instruct. All credits for the original model go to the DeepSeek AI team. The quantization was performed to make this powerful coding assistant more accessible for users with limited computational resources.
This model inherits the license of the original DeepSeek Coder V2 Lite Instruct model. Please refer to the original model's documentation for licensing details.