|
Download COMPLETE_UPLOAD_GUIDE.md from megharudushi/Sheikh: direct link, hf CLI and curl.
- Browser
- Download file 3.82 kB
-
https://huggingface.co/megharudushi/Sheikh/resolve/main/COMPLETE_UPLOAD_GUIDE.md
- Command line
-
hf download hf://megharudushi/Sheikh/COMPLETE_UPLOAD_GUIDE.md
-
curl -L -o COMPLETE_UPLOAD_GUIDE.md https://huggingface.co/megharudushi/Sheikh/resolve/main/COMPLETE_UPLOAD_GUIDE.md
3.82 kB
π― Complete Hugging Face Upload Guide for Bengali AI
π Your Model is Ready!
Repository: megharudushi/Sheikh
Files: 11 complete files (1.4GB total)
Status: β
Ready for upload
π Upload Methods (Choose One)
Method 1: Simple Python API (Recommended)
# Install dependencies
uv pip install huggingface_hub
# Run upload script
python3 simple_hf_upload.py
Method 2: Command Line Interface
# Install HF CLI
pip install huggingface_hub
# Login (prompts for token)
huggingface-cli login
# Upload directory
huggingface-cli upload megharudushi/Sheikh ready_bengali_ai/ \
--commit-message "Complete Bengali AI model with tokenizer"
Method 3: Git-based Upload (Advanced)
# Install git-xet
pip install git-xet
# Clone repository
git clone git@hf.co:megharudushi/Sheikh
# Copy files
cp ready_bengali_ai/* Sheikh/
# Commit and push
cd Sheikh
git add .
git commit -m "Add Bengali AI model - 355M parameters"
git push
Method 4: Web Interface (Easiest)
- Go to https://huggingface.co/new
- Choose "Model" repository type
- Name:
megharudushi/Sheikh - Drag and drop all files from
ready_bengali_ai/folder - Add description and publish
π Your Model Files (Ready to Upload)
ready_bengali_ai/
βββ model.bin (1.4GB) # Main model weights
βββ tokenizer.json (3.4MB) # Tokenizer configuration
βββ vocab.json (780KB) # Vocabulary
βββ merges.txt (446KB) # BPE merges
βββ config.json (13KB) # Model configuration
βββ params.json (2KB) # Parameters config
βββ special_tokens_map.json # Special tokens
βββ tokenizer_config.json # Tokenizer settings
βββ chat_template.jinja # Chat template
βββ README.md (924B) # Model documentation
βββ usage_guide.md (1.8KB) # Usage instructions
π Getting Your Hugging Face Token
- Go to: https://huggingface.co/settings/tokens
- Click "New token"
- Give it a name (e.g., "Bengali AI Upload")
- Select "Write" permissions
- Copy the token (starts with
hf_)
π After Upload
Your model will be available at: https://huggingface.co/megharudushi/Sheikh
Anyone can use it with:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("megharudushi/Sheikh")
model = AutoModelForCausalLM.from_pretrained("megharudushi/Sheikh")
# Bengali query
input_text = "বাΰ¦ΰ¦²ΰ¦Ύΰ¦¦ΰ§ΰ¦Άΰ§ΰ¦° ΰ¦°ΰ¦Ύΰ¦ΰ¦§ΰ¦Ύΰ¦¨ΰ§ ΰ¦ΰ§?"
inputs = tokenizer.encode(input_text, return_tensors="pt")
outputs = model.generate(inputs, max_length=150)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
π― Model Information
- Base Model: microsoft/DialoGPT-medium
- Parameters: 355M
- Language: Bengali (Bangla)
- Training Data: Alpaca Bangla dataset
- Capabilities: Instruction following, educational content, cultural knowledge
π§ Troubleshooting
Authentication Issues:
- Check token:
huggingface-cli whoami - Re-login:
huggingface-cli login - Set token:
export HF_TOKEN=your_token_here
Repository Issues:
- Repository might not exist yet - will be created on first upload
- Check username: Ensure
megharudushiis your HF username - Permissions: Ensure you have write access
Upload Issues:
- Large file size:
model.bin(1.4GB) may take time - Network: Ensure stable internet connection
- Try alternative method if one fails
π Success!
Once uploaded, your Bengali AI model will be:
- β Publicly accessible
- β Searchable on Hugging Face Hub
- β Loadable with transformers library
- β Ready for others to use and build upon
Your contribution to Bengali NLP is now live! π