Instructions to use os-1202883/LifeSync with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use os-1202883/LifeSync with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2") model = PeftModel.from_pretrained(base_model, "os-1202883/LifeSync") - Transformers
How to use os-1202883/LifeSync with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="os-1202883/LifeSync") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("os-1202883/LifeSync", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use os-1202883/LifeSync with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf os-1202883/LifeSync # Run inference directly in the terminal: llama cli -hf os-1202883/LifeSync
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf os-1202883/LifeSync # Run inference directly in the terminal: llama cli -hf os-1202883/LifeSync
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf os-1202883/LifeSync # Run inference directly in the terminal: ./llama-cli -hf os-1202883/LifeSync
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf os-1202883/LifeSync # Run inference directly in the terminal: ./build/bin/llama-cli -hf os-1202883/LifeSync
Use Docker
docker model run hf.co/os-1202883/LifeSync
- LM Studio
- Jan
- vLLM
How to use os-1202883/LifeSync with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "os-1202883/LifeSync" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "os-1202883/LifeSync", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/os-1202883/LifeSync
- SGLang
How to use os-1202883/LifeSync 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 "os-1202883/LifeSync" \ --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": "os-1202883/LifeSync", "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 "os-1202883/LifeSync" \ --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": "os-1202883/LifeSync", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use os-1202883/LifeSync with Ollama:
ollama run hf.co/os-1202883/LifeSync
- Unsloth Desktop
- Docker Model Runner
How to use os-1202883/LifeSync with Docker Model Runner:
docker model run hf.co/os-1202883/LifeSync
- Lemonade
How to use os-1202883/LifeSync with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull os-1202883/LifeSync
Run and chat with the model
lemonade run user.LifeSync-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!