Instructions to use notzero/model_combined with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use notzero/model_combined with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="notzero/model_combined") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("notzero/model_combined") model = AutoModelForCausalLM.from_pretrained("notzero/model_combined", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use notzero/model_combined with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "notzero/model_combined" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "notzero/model_combined", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/notzero/model_combined
- SGLang
How to use notzero/model_combined 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 "notzero/model_combined" \ --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": "notzero/model_combined", "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 "notzero/model_combined" \ --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": "notzero/model_combined", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use notzero/model_combined with Docker Model Runner:
docker model run hf.co/notzero/model_combined
Commit History
-
Trained with Unsloth
543bdc0 -
Upload tokenizer
7c5ce67
-
Trained with Unsloth
edff219 -
Trained with Unsloth
52d08dc -
Upload tokenizer
e14a88f
-
Trained with Unsloth
d8bff8d
-
Upload tokenizer
da4b56e -
Delete tokenizer_config.json
b62433c -
Delete tokenizer.json
b6516da -
Delete special_tokens_map.json
52092c1 -
Delete pytorch_model.bin.index.json
0df3ceb -
Trained with Unsloth
cf38fd1
-
Trained with Unsloth
8a5576d
-
Delete model.safetensors.index.json
030087b -
Trained with Unsloth
ce3e697 -
Upload tokenizer
0cb1d92
-
Upload tokenizer
d8f01ec -
Upload LlamaForCausalLM
7c2fc73 -
initial commit
b6dd9a7