Downloads · 30 days
22
25% of all-time downloads
Ravi5528/codebharat-100m
codebharat-100m is a text generation model from Ravi5528. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
CodeBharat-100M is a 100.68M parameter decoder-only Transformer pretrained from scratch on code (Python, JavaScript, TypeScript, C++, SQL, HTML/CSS, and synthetic textbooks).
Downloads · 30 days
22
25% of all-time downloads
All-time downloads
89
Public
Parameters
101M
805 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin403 MB · 50%
From the Hugging Face model README
CodeBharat-100M is a 100.68M parameter decoder-only Transformer pretrained from scratch on code (Python, JavaScript, TypeScript, C++, SQL, HTML/CSS, and synthetic textbooks).
import torch
from tokenizers import Tokenizer
from pathlib import Path
# Load tokenizer and model weights
tokenizer = Tokenizer.from_file("tokenizer.json")
weights = torch.load("pytorch_model.bin", map_location="cuda" if torch.cuda.is_available() else "cpu")
python 100m-codebharat/scripts/11_generate.py --prompt "def binary_search(arr, target):"