Instructions to use FroxStudio/Flex-Model-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use FroxStudio/Flex-Model-LoRA 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, "FroxStudio/Flex-Model-LoRA") - Transformers
How to use FroxStudio/Flex-Model-LoRA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FroxStudio/Flex-Model-LoRA") 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("FroxStudio/Flex-Model-LoRA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FroxStudio/Flex-Model-LoRA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FroxStudio/Flex-Model-LoRA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FroxStudio/Flex-Model-LoRA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FroxStudio/Flex-Model-LoRA
- SGLang
How to use FroxStudio/Flex-Model-LoRA 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 "FroxStudio/Flex-Model-LoRA" \ --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": "FroxStudio/Flex-Model-LoRA", "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 "FroxStudio/Flex-Model-LoRA" \ --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": "FroxStudio/Flex-Model-LoRA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FroxStudio/Flex-Model-LoRA with Docker Model Runner:
docker model run hf.co/FroxStudio/Flex-Model-LoRA
Commit History
-
Upload folder using huggingface_hub
Verified signature3d709b1 -
Upload folder using huggingface_hub
Verified signaturef411104 -
Upload folder using huggingface_hub
Verified signaturef03f9e1 -
Upload folder using huggingface_hub
Verified signature4918769 -
Upload folder using huggingface_hub
Verified signature487827b -
Upload folder using huggingface_hub
Verified signaturec954707 -
Upload folder using huggingface_hub
Verified signaturead4d704 -
Upload folder using huggingface_hub
Verified signaturec092ec3 -
Upload folder using huggingface_hub
Verified signaturee0e7166 -
Upload folder using huggingface_hub
Verified signature9aa19f4 -
Upload folder using huggingface_hub
Verified signaturec21a0c8 -
Upload folder using huggingface_hub
Verified signature757191d -
Upload folder using huggingface_hub
Verified signatureb9b8ddf -
Upload folder using huggingface_hub
Verified signature7efa2b6 -
Upload folder using huggingface_hub
Verified signaturec5fdf8c -
Upload folder using huggingface_hub
Verified signature3594bcb -
Upload folder using huggingface_hub
Verified signature55ac523 -
Upload folder using huggingface_hub
Verified signature605b295 -
Upload folder using huggingface_hub
Verified signature522ff1e -
Upload folder using huggingface_hub
Verified signature5a6b0fe -
Upload folder using huggingface_hub
Verified signature48b096f -
Upload folder using huggingface_hub
Verified signature48c32e1 -
Upload folder using huggingface_hub
Verified signatured61e3ac -
Upload folder using huggingface_hub
Verified signaturedcc66c7 -
Upload folder using huggingface_hub
Verified signaturef0685c5 -
Upload folder using huggingface_hub
Verified signaturecff52ff -
Upload folder using huggingface_hub
Verified signaturee318926 -
Upload folder using huggingface_hub
Verified signature4a325ca -
Upload folder using huggingface_hub
Verified signature51fb9ef -
Upload folder using huggingface_hub
Verified signature5c8b43d -
Upload folder using huggingface_hub
Verified signaturee9cb651 -
Upload folder using huggingface_hub
Verified signature5802a95 -
Upload folder using huggingface_hub
Verified signature66b593f -
Upload folder using huggingface_hub
Verified signaturef747dd2 -
Upload folder using huggingface_hub
Verified signature5feeea3 -
Upload folder using huggingface_hub
Verified signature40ff8cb -
Upload folder using huggingface_hub
Verified signature070f821 -
Upload folder using huggingface_hub
Verified signature2bf4f00 -
Upload folder using huggingface_hub
Verified signaturec97cdfa -
Upload folder using huggingface_hub
Verified signaturee2577ec -
Upload folder using huggingface_hub
Verified signaturea7818e2 -
Upload folder using huggingface_hub
Verified signature634550d -
Upload folder using huggingface_hub
Verified signature57eea4d -
Upload folder using huggingface_hub
Verified signaturee564a4b -
Upload folder using huggingface_hub
Verified signaturea56bcd8 -
Upload folder using huggingface_hub
Verified signature6f9a861 -
Upload folder using huggingface_hub
Verified signature5a5e7c9 -
Upload folder using huggingface_hub
Verified signaturea227447 -
Upload folder using huggingface_hub
Verified signature663f07d -
Upload folder using huggingface_hub
Verified signaturef58e2c5