Instructions to use asadmasad/ds-finetuning-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use asadmasad/ds-finetuning-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="asadmasad/ds-finetuning-test") 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("asadmasad/ds-finetuning-test") model = AutoModelForCausalLM.from_pretrained("asadmasad/ds-finetuning-test", 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 asadmasad/ds-finetuning-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "asadmasad/ds-finetuning-test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "asadmasad/ds-finetuning-test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/asadmasad/ds-finetuning-test
- SGLang
How to use asadmasad/ds-finetuning-test 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 "asadmasad/ds-finetuning-test" \ --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": "asadmasad/ds-finetuning-test", "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 "asadmasad/ds-finetuning-test" \ --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": "asadmasad/ds-finetuning-test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use asadmasad/ds-finetuning-test with Docker Model Runner:
docker model run hf.co/asadmasad/ds-finetuning-test
Commit History
-
Upload training_args.bin
Verified signature79e95d1 -
Update requirements.txt
Verified signatureb7fe776 -
Update handler.py
Verified signature64439b2 -
Delete all_results.json
Verified signature7731594 -
Delete model.safetensors.index.json
Verified signature0c200cb -
Delete model-00003-of-00003.safetensors
Verified signature58e4c9b -
Delete model-00002-of-00003.safetensors
Verified signature9da7fc6 -
Delete model-00001-of-00003.safetensors
Verified signature563e313 -
Upload pytorch_model.bin with huggingface_hub
Verified signatureb425d9a
-
Update handler.py
Verified signature8d1e072 -
Update handler.py
Verified signature09e76dc -
Update handler.py
Verified signaturec688783 -
Delete pytorch_model.bin
Verified signaturedad6b8d -
Update README.md
Verified signaturebe19433 -
Create requirements.txt
Verified signaturec1bb0d3 -
Create handler.py
Verified signatureff76dc9 -
Upload folder using huggingface_hub
Verified signature311a4e0 -
Upload pytorch_model.bin with huggingface_hub
Verified signaturebf22ec0 -
Delete model.safetensors
Verified signatureb4efa42 -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signature74b99f7 -
Upload model-00002-of-00003.safetensors with huggingface_hub
Verified signature7de918e -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signaturee183f89 -
Upload 8 files
Verified signature0fca1f6 -
Update README.md
Verified signature2c81cfe -
initial commit
Verified signaturef1126c0