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 signature1d76396 -
Upload folder using huggingface_hub
Verified signature2eba9bb -
Upload folder using huggingface_hub
Verified signatureb581738 -
Upload folder using huggingface_hub
Verified signaturea5f9d75 -
Upload folder using huggingface_hub
Verified signature5159296 -
Upload folder using huggingface_hub
Verified signature0f8fa53 -
Upload folder using huggingface_hub
Verified signature559462a -
Upload folder using huggingface_hub
Verified signature5badfe5 -
Upload folder using huggingface_hub
Verified signature008778d -
Upload folder using huggingface_hub
Verified signaturec0d6b91 -
Upload folder using huggingface_hub
Verified signature12fff8e -
Upload folder using huggingface_hub
Verified signature9f3c99a -
Upload folder using huggingface_hub
Verified signature8764829 -
Upload folder using huggingface_hub
Verified signature61993e0 -
Upload folder using huggingface_hub
Verified signatured0d61a0 -
Upload folder using huggingface_hub
Verified signature6c9ca84 -
Upload folder using huggingface_hub
Verified signature53d39c1 -
Upload folder using huggingface_hub
Verified signature79f54e0 -
Upload folder using huggingface_hub
Verified signature4443c8f -
Upload folder using huggingface_hub
Verified signaturecfa6234 -
Upload folder using huggingface_hub
Verified signature59f3820 -
Upload folder using huggingface_hub
Verified signature9c12467 -
Upload folder using huggingface_hub
Verified signature18057cc -
Upload folder using huggingface_hub
Verified signature3abf9bd -
Upload folder using huggingface_hub
Verified signature0669bf3 -
Upload folder using huggingface_hub
Verified signature9e300c3 -
Upload folder using huggingface_hub
Verified signaturedb02dda -
Upload folder using huggingface_hub
Verified signature766e3f4 -
Upload folder using huggingface_hub
Verified signature376a2b3 -
Upload folder using huggingface_hub
Verified signature326d810 -
Upload folder using huggingface_hub
Verified signature372fba7 -
Upload folder using huggingface_hub
Verified signature1a349f4 -
Upload folder using huggingface_hub
Verified signatureb9b9ca3 -
Upload folder using huggingface_hub
Verified signatured998e54 -
Upload folder using huggingface_hub
Verified signature8313e17 -
Upload folder using huggingface_hub
Verified signaturecf6ae5c -
Upload folder using huggingface_hub
Verified signature85f3b63 -
Upload folder using huggingface_hub
Verified signature3ebc35d -
Upload folder using huggingface_hub
Verified signaturec21fb9d -
Upload folder using huggingface_hub
Verified signatureb1e8adb -
Upload folder using huggingface_hub
Verified signaturecf99ca0 -
Upload folder using huggingface_hub
Verified signatured6a394f -
Upload folder using huggingface_hub
Verified signaturec76bb8c -
Upload folder using huggingface_hub
Verified signature9b052a3 -
Upload folder using huggingface_hub
Verified signature11c0ab2 -
Upload folder using huggingface_hub
Verified signature2a2cf74 -
Upload folder using huggingface_hub
Verified signature41779a5 -
Upload folder using huggingface_hub
Verified signature1ab9236 -
Upload folder using huggingface_hub
Verified signature7a53370 -
Upload folder using huggingface_hub
Verified signature1c435f6