Text Generation
PEFT
Safetensors
Transformers
llama-factory
lora
question-generation
education
secondary-school
conversational
Instructions to use tokhey/question_generation_1.5B_model_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use tokhey/question_generation_1.5B_model_v2 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, "tokhey/question_generation_1.5B_model_v2") - Transformers
How to use tokhey/question_generation_1.5B_model_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tokhey/question_generation_1.5B_model_v2") 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("tokhey/question_generation_1.5B_model_v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tokhey/question_generation_1.5B_model_v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tokhey/question_generation_1.5B_model_v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tokhey/question_generation_1.5B_model_v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tokhey/question_generation_1.5B_model_v2
- SGLang
How to use tokhey/question_generation_1.5B_model_v2 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 "tokhey/question_generation_1.5B_model_v2" \ --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": "tokhey/question_generation_1.5B_model_v2", "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 "tokhey/question_generation_1.5B_model_v2" \ --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": "tokhey/question_generation_1.5B_model_v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tokhey/question_generation_1.5B_model_v2 with Docker Model Runner:
docker model run hf.co/tokhey/question_generation_1.5B_model_v2
Commit History
-
Update README.md
Verified signature7f93f95 -
End of training
Verified signature54eb50f -
Model save
Verified signatureff3ed67 -
Training in progress, step 880, checkpoint
Verified signatured98e8da -
Training in progress, step 880
Verified signatureae5cc88 -
Training in progress, step 840, checkpoint
Verified signature7a995c0 -
Training in progress, step 840
Verified signatured592985 -
Training in progress, step 800, checkpoint
Verified signature8162c91 -
Training in progress, step 800
Verified signaturec276230 -
Training in progress, step 760, checkpoint
Verified signature244f728 -
Training in progress, step 760
Verified signature2733cb4 -
Training in progress, step 720, checkpoint
Verified signaturec8e8579 -
Training in progress, step 720
Verified signature06e0dac -
Training in progress, step 680, checkpoint
Verified signature42d681c -
Training in progress, step 680
Verified signature9513c62 -
Training in progress, step 640, checkpoint
Verified signature6addccf -
Training in progress, step 640
Verified signatured66effd -
Training in progress, step 600, checkpoint
Verified signature2aac6b4 -
Training in progress, step 600
Verified signature4fc764b -
Training in progress, step 560, checkpoint
Verified signatureba7fc48 -
Training in progress, step 560
Verified signatureeb9228c -
Training in progress, step 520, checkpoint
Verified signature84fcc69 -
Training in progress, step 520
Verified signature746a395 -
Training in progress, step 480, checkpoint
Verified signature751f2ec -
Training in progress, step 480
Verified signature2bec529 -
Training in progress, step 440, checkpoint
Verified signature7d6d183 -
Training in progress, step 440
Verified signaturec4ef36c -
Training in progress, step 400, checkpoint
Verified signaturec39bfaa -
Training in progress, step 400
Verified signature3351df6 -
Training in progress, step 360, checkpoint
Verified signature7365636 -
Training in progress, step 360
Verified signature4563970 -
Training in progress, step 320, checkpoint
Verified signature48521ef -
Training in progress, step 320
Verified signaturecd2be55 -
Training in progress, step 280, checkpoint
Verified signature2f2fd4c -
Training in progress, step 280
Verified signaturea5a20ab -
Training in progress, step 240, checkpoint
Verified signature6989661 -
Training in progress, step 240
Verified signature8e4da8c -
Training in progress, step 200, checkpoint
Verified signature27d4d34 -
Training in progress, step 200
Verified signature5685671
-
Training in progress, step 160, checkpoint
Verified signaturea05e9b2 -
Training in progress, step 160
Verified signature07b9dc6 -
Training in progress, step 120, checkpoint
Verified signature074ff58 -
Training in progress, step 120
Verified signatureedc8f11 -
Training in progress, step 80, checkpoint
Verified signature12ff35a -
Training in progress, step 80
Verified signatureef7a7f3 -
Training in progress, step 40, checkpoint
Verified signature60b86f6 -
Training in progress, step 40
Verified signaturede3c2a8 -
initial commit
Verified signaturedf6a90e