Instructions to use Maqqq/Nous-Finetuning-Subnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maqqq/Nous-Finetuning-Subnet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Maqqq/Nous-Finetuning-Subnet") 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/Nous-Finetuning-Subnet") model = AutoModelForCausalLM.from_pretrained("Maqqq/Nous-Finetuning-Subnet", 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/Nous-Finetuning-Subnet with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Maqqq/Nous-Finetuning-Subnet" # 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/Nous-Finetuning-Subnet", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Maqqq/Nous-Finetuning-Subnet
- SGLang
How to use Maqqq/Nous-Finetuning-Subnet 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/Nous-Finetuning-Subnet" \ --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/Nous-Finetuning-Subnet", "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/Nous-Finetuning-Subnet" \ --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/Nous-Finetuning-Subnet", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Maqqq/Nous-Finetuning-Subnet with Docker Model Runner:
docker model run hf.co/Maqqq/Nous-Finetuning-Subnet
Upload LlamaForCausalLM
Browse filesFiles changed (3)
123version https://git-lfs.github.com/spec/v1oid sha256:02a4525a066f5f6c2382c45f34acf1f8e3ee27f2b23d6d58ea75b9d610ede58csize 4943162336123version https://git-lfs.github.com/spec/v1oid sha256:12a24baee458cc798e34d5aa2b522068b6d0f25749c1d4c7cf2423b79cb6f966size 4943162336
123version https://git-lfs.github.com/spec/v1oid sha256:9c353652d16e6ceec9830bbf455761ceb1970c26f1281a82a9af5b537a92ef1csize 4999819336123version https://git-lfs.github.com/spec/v1oid sha256:2672e8c2d93538e9a2b806742e69a0ffec5ba792bc2b8ff07654d2cce238c88bsize 4999819336
123version https://git-lfs.github.com/spec/v1oid sha256:84316f785368a8cbc30f3ed30f166158034e1ce3c7ee4a0aead30144ee82edf7size 4540516344123version https://git-lfs.github.com/spec/v1oid sha256:4274a8d471230099c1ca4b030e450c79a455e52b3fa7e7ab8d057b610118b54esize 4540516344
model-00001-of-00003.safetensors+1-1
model-00002-of-00003.safetensors+1-1
model-00003-of-00003.safetensors+1-1