Instructions to use Vjay15/SmolLM_LoRA_Science_Grader with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Vjay15/SmolLM_LoRA_Science_Grader with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM-360M-Instruct") model = PeftModel.from_pretrained(base_model, "Vjay15/SmolLM_LoRA_Science_Grader") - Transformers
How to use Vjay15/SmolLM_LoRA_Science_Grader with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Vjay15/SmolLM_LoRA_Science_Grader") 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("Vjay15/SmolLM_LoRA_Science_Grader", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Vjay15/SmolLM_LoRA_Science_Grader with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vjay15/SmolLM_LoRA_Science_Grader" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vjay15/SmolLM_LoRA_Science_Grader", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Vjay15/SmolLM_LoRA_Science_Grader
- SGLang
How to use Vjay15/SmolLM_LoRA_Science_Grader 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 "Vjay15/SmolLM_LoRA_Science_Grader" \ --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": "Vjay15/SmolLM_LoRA_Science_Grader", "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 "Vjay15/SmolLM_LoRA_Science_Grader" \ --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": "Vjay15/SmolLM_LoRA_Science_Grader", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Vjay15/SmolLM_LoRA_Science_Grader with Docker Model Runner:
docker model run hf.co/Vjay15/SmolLM_LoRA_Science_Grader
Commit History
-
Upload folder using huggingface_hub
Verified signatureaed9d5e -
Delete Adapter Uploaded/vocab.json with huggingface_hub
Verified signature7ccbe48 -
Delete Adapter Uploaded/training_args.bin with huggingface_hub
Verified signature481d2ce -
Delete Adapter Uploaded/tokenizer_config.json with huggingface_hub
Verified signature35daf36 -
Delete Adapter Uploaded/tokenizer.json with huggingface_hub
Verified signature832a9b9 -
Delete Adapter Uploaded/special_tokens_map.json with huggingface_hub
Verified signature7c552fd -
Delete Adapter Uploaded/merges.txt with huggingface_hub
Verified signaturefddb546 -
Delete Adapter Uploaded/checkpoint-12/vocab.json with huggingface_hub
Verified signatureaa0df83 -
Delete Adapter Uploaded/checkpoint-12/training_args.bin with huggingface_hub
Verified signature15962ce -
Delete Adapter Uploaded/checkpoint-12/trainer_state.json with huggingface_hub
Verified signatureac0a732 -
Delete Adapter Uploaded/checkpoint-12/tokenizer_config.json with huggingface_hub
Verified signature812be62 -
Delete Adapter Uploaded/checkpoint-12/tokenizer.json with huggingface_hub
Verified signature890297d -
Delete Adapter Uploaded/checkpoint-12/special_tokens_map.json with huggingface_hub
Verified signature0665b49 -
Delete Adapter Uploaded/checkpoint-12/scheduler.pt with huggingface_hub
Verified signaturecb717b1 -
Delete Adapter Uploaded/checkpoint-12/rng_state.pth with huggingface_hub
Verified signature5f53966 -
Delete Adapter Uploaded/checkpoint-12/optimizer.pt with huggingface_hub
Verified signaturec812b6f -
Delete Adapter Uploaded/checkpoint-12/merges.txt with huggingface_hub
Verified signature1a7a8cc -
Delete Adapter Uploaded/checkpoint-12/chat_template.jinja with huggingface_hub
Verified signature6ac2181 -
Delete Adapter Uploaded/checkpoint-12/adapter_model.safetensors with huggingface_hub
Verified signatureb3ec23c -
Delete Adapter Uploaded/checkpoint-12/adapter_config.json with huggingface_hub
Verified signature03c6076 -
Delete Adapter Uploaded/checkpoint-12/README.md with huggingface_hub
Verified signature1dd5375 -
Delete Adapter Uploaded/chat_template.jinja with huggingface_hub
Verified signature217dd2c -
Delete Adapter Uploaded/adapter_model.safetensors with huggingface_hub
Verified signature3613a20 -
Delete Adapter Uploaded/adapter_config.json with huggingface_hub
Verified signatureb8f6a76 -
Delete Adapter Uploaded/README.md with huggingface_hub
Verified signature235862f -
Upload folder using huggingface_hub
Verified signature2ba20fb -
initial commit
Verified signature9ae5314