Instructions to use ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd") model = AutoModelForCausalLM.from_pretrained("ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd
- SGLang
How to use ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd with Docker Model Runner:
docker model run hf.co/ysn-rfd/First_Persian_SLM_Big_Update_Version3_ULTIMATE_ysnrfd
Model Details
WARNINNGS: This Model IS Pre-Trained, in the future will be finetuned.
Model Description
The First Persian SLM By YSNRFD, This Model support Only Persian text Inputs, In The Future I Want Add Englih Language Support.
- Developed by: ysnrfd
- Funded by: ysnrfd
- Shared by: ysnrfd
- Model type: SLM
- Language(s) (NLP): Persian
- License: ysnrfd LICENSE
Training Data
ysnrfd Sample Persian Text LINK: https://huggingface.co/datasets/ysn-rfd/fibonacci_alpaca_to_sharegpt_gpt_format_convert_new_dataset_release
Training Hyperparameters
- Training regime: fp32 mixed precision
Evaluation
Not Yet
Testing Data, Factors & Metrics
ysnrfd Sample Persian Text
Testing Data
Not Yet
Summary
The Fisrt Persian SLM Trained From Scratch
- Hardware Type: Nvidia P100
- Hours used: 21H
- Cloud Provider: Kaggle
Model Architecture and Objective
YSNRFD Architecture
Hardware
Nvidia P100
Software
Python Code, From Scratch, Pytorch
- Downloads last month
- 5