Text Generation
PEFT
Safetensors
Transformers
Arabic
llama
lora
sft
trl
conversational
text-generation-inference
Instructions to use Hishambarakat/Bahraini_Dialect_LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Hishambarakat/Bahraini_Dialect_LLM with PEFT:
Task type is invalid.
- Transformers
How to use Hishambarakat/Bahraini_Dialect_LLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Hishambarakat/Bahraini_Dialect_LLM") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Hishambarakat/Bahraini_Dialect_LLM") model = AutoModelForCausalLM.from_pretrained("Hishambarakat/Bahraini_Dialect_LLM", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Hishambarakat/Bahraini_Dialect_LLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hishambarakat/Bahraini_Dialect_LLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hishambarakat/Bahraini_Dialect_LLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Hishambarakat/Bahraini_Dialect_LLM
- SGLang
How to use Hishambarakat/Bahraini_Dialect_LLM 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 "Hishambarakat/Bahraini_Dialect_LLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hishambarakat/Bahraini_Dialect_LLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Hishambarakat/Bahraini_Dialect_LLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hishambarakat/Bahraini_Dialect_LLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Hishambarakat/Bahraini_Dialect_LLM with Docker Model Runner:
docker model run hf.co/Hishambarakat/Bahraini_Dialect_LLM
Commit History
-
Upload README.md with huggingface_hub
Verified signature061c5f0
-
Upload README.md with huggingface_hub
Verified signaturebe8e09e
-
Upload README.md with huggingface_hub
Verified signature4ee2864 -
Upload README.md with huggingface_hub
Verified signaturec5200f2 -
Upload README.md with huggingface_hub
Verified signature62e8962 -
Remove folder: Qwen3-8B-unsloth-bnb-4bit-instruct
Verified signature98fe18d -
Remove folder: Qwen3-8B-unsloth-bnb-4bit-cpt-merged
Verified signature98951b0 -
Remove folder: Qwen2.5-32B-bnb-4bit-instruct
Verified signature734b073 -
Remove folder: Qwen2.5-32B-bnb-4bit-instruct-single-speaker
Verified signaturea2be1e0 -
Remove folder: Qwen2.5-32B-bnb-4bit-cpt
Verified signature6fbbd93 -
Remove folder: ALLaM-7B-Instruct-preview-Bahraini_Dialect
Verified signature7bfb30d -
Upload README.md with huggingface_hub
Verified signature9886486 -
Upload README.md with huggingface_hub
Verified signature11c6379 -
Upload folder using huggingface_hub
Verified signaturebe76b2a -
Delete vocab.json with huggingface_hub
Verified signatureb7b522e -
Delete tokenizer_config.json with huggingface_hub
Verified signaturef0ca690 -
Delete tokenizer.model with huggingface_hub
Verified signature93d2a38 -
Delete tokenizer.json with huggingface_hub
Verified signature71c4353 -
Delete special_tokens_map.json with huggingface_hub
Verified signature14dc0b0 -
Delete model-00002-of-00003.safetensors with huggingface_hub
Verified signaturec7613fd -
Delete model-00001-of-00003.safetensors with huggingface_hub
Verified signature49adf00 -
Delete merges.txt with huggingface_hub
Verified signature053f72f -
Delete generation_config.json with huggingface_hub
Verified signature2c4a118 -
Delete config.json with huggingface_hub
Verified signatureed43e36 -
Delete chat_template.jinja with huggingface_hub
Verified signaturefafc7bd -
Delete added_tokens.json with huggingface_hub
Verified signature9027eae -
Delete adapter_model.safetensors with huggingface_hub
Verified signaturec32e507 -
Delete adapter_config.json with huggingface_hub
Verified signaturec1dde56 -
Delete README.md with huggingface_hub
Verified signature402215a -
Delete .gitattributes with huggingface_hub
Verified signature5cf5198 -
Upload folder using huggingface_hub
Verified signature51566da -
Upload folder using huggingface_hub
Verified signatured8c3d31 -
Upload folder using huggingface_hub
Verified signaturecd61986 -
Upload folder using huggingface_hub
Verified signature1737db6 -
Add Qwen3-8B-unsloth-bnb-4bit-instruct LoRA
Verified signaturec2e8aff -
Add merged CPT checkpoint: Qwen3-8B-unsloth-bnb-4bit-cpt-merged
Verified signaturecafec3a -
Add Qwen2.5-32B-bnb-4bit-instruct-single-speaker LoRA
Verified signature85347fb
-
Add Qwen2.5-32B-bnb-4bit-instruct LoRA
Verified signature40ea530 -
Add Qwen2.5-32B-bnb-4bit-instruct LoRA
Verified signature02fc59b -
Add Qwen2.5-32B-bnb-4bit-cpt LoRA
Verified signaturedb583f0 -
Upload folder using huggingface_hub
Verified signaturee0cb2e4 -
Upload folder using huggingface_hub
Verified signaturea37d1fe -
Upload folder using huggingface_hub
Verified signature3fca445 -
Upload folder using huggingface_hub
Verified signature7b67be0
-
Upload folder using huggingface_hub
Verified signatured24b49c -
Upload folder using huggingface_hub
Verified signaturef6fd828 -
Upload folder using huggingface_hub
Verified signature55a67a4 -
Upload folder using huggingface_hub
Verified signature69b6f80 -
initial commit
Verified signature0910e21