Instructions to use AhmedZaky1/authorship_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AhmedZaky1/authorship_model with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "AhmedZaky1/authorship_model") - Transformers
How to use AhmedZaky1/authorship_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AhmedZaky1/authorship_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AhmedZaky1/authorship_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AhmedZaky1/authorship_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AhmedZaky1/authorship_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AhmedZaky1/authorship_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AhmedZaky1/authorship_model
- SGLang
How to use AhmedZaky1/authorship_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 "AhmedZaky1/authorship_model" \ --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": "AhmedZaky1/authorship_model", "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 "AhmedZaky1/authorship_model" \ --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": "AhmedZaky1/authorship_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AhmedZaky1/authorship_model with Docker Model Runner:
docker model run hf.co/AhmedZaky1/authorship_model
Commit History
-
End of training
Verified signature5ef4af3 -
Model save
Verified signaturee83258e -
Training in progress, step 28389, checkpoint
Verified signature3a78869 -
Training in progress, step 28389
Verified signature25ece53
-
Training in progress, step 28000, checkpoint
Verified signaturecd313f7 -
Training in progress, step 28000
Verified signaturef65d82a
-
Training in progress, step 27500, checkpoint
Verified signature2bc9a42 -
Training in progress, step 27500
Verified signatureb760bd8 -
Training in progress, step 27000, checkpoint
Verified signature9a2122a -
Training in progress, step 27000
Verified signature1c6e9a4 -
Training in progress, step 26500, checkpoint
Verified signature8d90b1d -
Training in progress, step 26500
Verified signatured4a5cfe -
Training in progress, step 26000, checkpoint
Verified signature324e761 -
Training in progress, step 26000
Verified signature8d0aae9
-
Training in progress, step 25500, checkpoint
Verified signature7b279cd -
Training in progress, step 25500
Verified signature4e6c35d -
Training in progress, step 25000, checkpoint
Verified signature33b10d9 -
Training in progress, step 25000
Verified signature63c9e41
-
Training in progress, step 24500, checkpoint
Verified signatureaacbf5d -
Training in progress, step 24500
Verified signatureb7aa293 -
Training in progress, step 24000, checkpoint
Verified signature24c1da0 -
Training in progress, step 24000
Verified signature440aded -
Training in progress, step 23500, checkpoint
Verified signaturea791004 -
Training in progress, step 23500
Verified signaturecf9d6fb
-
Training in progress, step 23000, checkpoint
Verified signature354ac5e -
Training in progress, step 23000
Verified signature4e94917 -
Training in progress, step 22500, checkpoint
Verified signatured888562 -
Training in progress, step 22500
Verified signature6aa41bb -
Training in progress, step 22000, checkpoint
Verified signatured3d5469 -
Training in progress, step 22000
Verified signaturec9e6346 -
Training in progress, step 21500, checkpoint
Verified signaturec46cc1c -
Training in progress, step 21500
Verified signature3577f70
-
Training in progress, step 21000, checkpoint
Verified signature3b68fd2 -
Training in progress, step 21000
Verified signature4a1ba22 -
Training in progress, step 20500, checkpoint
Verified signaturefb2ea11 -
Training in progress, step 20500
Verified signature047b1a1
-
Training in progress, step 20000, checkpoint
Verified signature01e672a -
Training in progress, step 20000
Verified signature4160f17
-
Training in progress, step 19500, checkpoint
Verified signature6f6c58c -
Training in progress, step 19500
Verified signature50b02f6 -
Training in progress, step 19000, checkpoint
Verified signature890b7b6 -
Training in progress, step 19000
Verified signature011c298 -
Training in progress, step 18500, checkpoint
Verified signature71cdb00 -
Training in progress, step 18500
Verified signature474c05d -
Training in progress, step 18000, checkpoint
Verified signature80c9380 -
Training in progress, step 18000
Verified signature28e5691 -
Training in progress, step 17500, checkpoint
Verified signaturec853773 -
Training in progress, step 17500
Verified signature92c60ce -
Training in progress, step 17000, checkpoint
Verified signature7b3fb76 -
Training in progress, step 17000
Verified signature8115cbc