Instructions to use ZainAli60/tuned_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZainAli60/tuned_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ZainAli60/tuned_model", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ZainAli60/tuned_model", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("ZainAli60/tuned_model", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ZainAli60/tuned_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ZainAli60/tuned_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ZainAli60/tuned_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ZainAli60/tuned_model
- SGLang
How to use ZainAli60/tuned_model 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 "ZainAli60/tuned_model" \ --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": "ZainAli60/tuned_model", "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 "ZainAli60/tuned_model" \ --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": "ZainAli60/tuned_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ZainAli60/tuned_model with Docker Model Runner:
docker model run hf.co/ZainAli60/tuned_model
Upload FalconForCausalLM
Browse filesFiles changed (2)
- config.json+1-1
- model.safetensors+1-1
12345{"_name_or_path": "/root/pretraining/local-models/training/2024-02-13_09-44-40","alibi": true,"apply_residual_connection_post_layernorm": false,"architectures": [12345{"_name_or_path": "/root/pretraining/local-models/training/2024-02-13_09-52-31","alibi": true,"apply_residual_connection_post_layernorm": false,"architectures": [
123version https://git-lfs.github.com/spec/v1oid sha256:f7439784321f4eddd50275eda836d9020f5d86df01ae4f7312b06a769dad5038size 5246534968123version https://git-lfs.github.com/spec/v1oid sha256:d150a6327152db290dbf05f82dbd69a6a2f35206473e9c6f9c4848bf68957e6fsize 5246534968
config.json+1-1
model.safetensors+1-1