Instructions to use Maqqq/finetuning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maqqq/finetuning with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Maqqq/finetuning") 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("Maqqq/finetuning") model = AutoModelForCausalLM.from_pretrained("Maqqq/finetuning", 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 Maqqq/finetuning with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Maqqq/finetuning" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Maqqq/finetuning", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Maqqq/finetuning
- SGLang
How to use Maqqq/finetuning 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 "Maqqq/finetuning" \ --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": "Maqqq/finetuning", "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 "Maqqq/finetuning" \ --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": "Maqqq/finetuning", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Maqqq/finetuning with Docker Model Runner:
docker model run hf.co/Maqqq/finetuning
Commit History
-
Upload LlamaForCausalLM
Verified signaturead6a41d -
Upload tokenizer
Verified signature33dd57b -
Upload LlamaForCausalLM
Verified signature588734b -
Upload tokenizer
Verified signature2baa344 -
Upload LlamaForCausalLM
Verified signature00f6d79 -
Upload tokenizer
Verified signature3374c6f
-
Upload LlamaForCausalLM
Verified signature872845d -
Upload tokenizer
Verified signature75f5130 -
Upload LlamaForCausalLM
Verified signature273afaa -
Upload tokenizer
Verified signatureb731ed8 -
Upload LlamaForCausalLM
Verified signature4d53d41 -
Upload tokenizer
Verified signature03340a3 -
Upload LlamaForCausalLM
Verified signature7441415 -
Upload tokenizer
Verified signaturea611f9c -
Delete model-00003-of-00003.safetensors
Verified signaturedff84b3 -
Delete model-00002-of-00003.safetensors
Verified signatured815bf7 -
Delete model-00001-of-00003.safetensors
Verified signaturec52dcb1 -
Delete tokenizer_config.json
Verified signaturec45e7fd -
Delete tokenizer.model
Verified signature8ab8681 -
Delete tokenizer.json
Verified signature95cd625 -
Delete special_tokens_map.json
Verified signaturecd0128f -
Delete config.json
Verified signature77668c8 -
Delete model.safetensors.index.json
Verified signature186bdf8 -
Delete generation_config.json
Verified signature889afb4 -
Upload LlamaForCausalLM
Verified signature03ff675 -
Upload tokenizer
Verified signature2e85da8
-
Upload LlamaForCausalLM
Verified signature2e1bf51 -
Upload tokenizer
Verified signature6ea5be6 -
Upload LlamaForCausalLM
Verified signatured08a5ba -
Upload tokenizer
Verified signature538c243 -
Upload LlamaForCausalLM
Verified signature6f1a699 -
Upload tokenizer
Verified signaturecda93b5
-
initial commit
Verified signature05c0194