Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3# Load the model
4model = AutoModelForCausalLM.from_pretrained("likhonsheikh/sheikh-coder-v1-3b", trust_remote_code=True)
5tokenizer = AutoTokenizer.from_pretrained("likhonsheikh/sheikh-coder-v1-3b")
6
7# Example usage
8code = """
9def calculate_zakat(amount):
10 # Calculate Islamic Zakat (2.5% of wealth)
11"""
12
13inputs = tokenizer(code, return_tensors="pt")
14outputs = model.generate(**inputs, max_length=200)
15print(tokenizer.decode(outputs[0]))Code Completion (Python):
- Accuracy: 85%
- Cultural Context Score: 90%
- Response Time: <100ms
Documentation Generation:
- BLEU Score: 0.75
- Cultural Relevance: 0.851# With pip
2pip install torch transformers
3
4# Optional: for 4-bit quantization
5pip install bitsandbytes1@software{sheikh_coder_2025,
2 author = {Likhon Sheikh},
3 title = {SheikhCoder: A Culturally-Aware Code Completion Model},
4 year = {2025},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/likhonsheikh/sheikh-coder-v1-3b}
7}