Run this model with HF Jobs
Run sixfingerdev/SixFinger-8B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/sixfingerdev/SixFinger-8B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/sixfingerdev/SixFinger-8B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/sixfingerdev/SixFinger-8B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/sixfingerdev/SixFinger-8B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use sixfingerdev/SixFinger-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use sixfingerdev/SixFinger-8B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/meta-llama-3.1-8b-bnb-4bit") model = PeftModel.from_pretrained(base_model, "sixfingerdev/SixFinger-8B") - Transformers
How to use sixfingerdev/SixFinger-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sixfingerdev/SixFinger-8B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sixfingerdev/SixFinger-8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sixfingerdev/SixFinger-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sixfingerdev/SixFinger-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sixfingerdev/SixFinger-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sixfingerdev/SixFinger-8B
- SGLang
How to use sixfingerdev/SixFinger-8B 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 "sixfingerdev/SixFinger-8B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sixfingerdev/SixFinger-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "sixfingerdev/SixFinger-8B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sixfingerdev/SixFinger-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use sixfingerdev/SixFinger-8B with Docker Model Runner:
docker model run hf.co/sixfingerdev/SixFinger-8B
Clarify model limitations and fix usage instructions
Browse files6 unmodified lines789101112131 unmodified line151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211226 unmodified lines- lora- sft- transformers- trl- unslothlicense: apache-2.0datasets:1 unmodified linelanguage:- tr- en- zh---# SixFinger-8B Adapter for LLaMA 3.1 8BThis repository contains a **LoRA adapter** for the SixFinger-8B model.The adapter allows fine-tuned responses on top of the base model **```unsloth/llama-3.1-8b-bnb-4bit```** without modifying the base weights.---## Overview- **Base Model:** unsloth/llama-3.1-8b-bnb-4bit- **Adapter Type:** LoRA- **Quantization:** 4-bit (via bitsandbytes)- **Purpose:** Enhanced response generation for Turkish/English mixed datasets.- **Compatibility:** Use with Hugging Face Transformers + PEFT library.---## InstallationInstall required dependencies:```!pip install transformers accelerate bitsandbytes peft```Ensure you have a GPU with sufficient VRAM for 4-bit inference.---## Loading the Model1. **Load the Base Model**```from transformers import AutoTokenizer, AutoModelForCausalLM``````base_model = AutoModelForCausalLM.from_pretrained("unsloth/llama-3.1-8b-bnb-4bit",device_map="auto")```2. **Load the Adapter**'from peft import PeftModel''model = PeftModel.from_pretrained('' base_model,'' "sixfingerdev/SixFinger-8B"'')'3. **Load the Tokenizer**'tokenizer = AutoTokenizer.from_pretrained("unsloth/llama-3.1-8b-bnb-4bit")'---## Example UsageGenerate text using the adapter:```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLMfrom peft import PeftModelimport torch# Base modelbase_model = AutoModelForCausalLM.from_pretrained("unsloth/llama-3.1-8b-bnb-4bit",device_map="auto")# LoRA adaptermodel = PeftModel.from_pretrained(base_model, "sixfingerdev/SixFinger-8B")# Tokenizertokenizer = AutoTokenizer.from_pretrained("unsloth/llama-3.1-8b-bnb-4bit")# Örnek text generationprompt = "Soru: Yapay zeka nedir?\nCevap:"inputs = tokenizer(prompt, return_tensors="pt")with torch.no_grad():outputs = model.generate(**inputs, max_new_tokens=50, do_sample=True, temperature=0.7)print(tokenizer.decode(outputs[0], skip_special_tokens=True))```---## Notes- The adapter does **not** modify the base model; it only applies LoRA weights on top.- 4-bit quantization significantly reduces VRAM usage. Ensure your GPU supports **bitsandbytes 4-bit operations**.- You can merge the adapter into the base model for easier deployment if needed.---## References- [PEFT (Parameter-Efficient Fine-Tuning)](https://huggingface.co/docs/peft/index)- [Transformers 4-bit Quantization](https://huggingface.co/docs/transformers/main/en/main_classes/quantization)---## LicenseThe adapter and its usage are provided under the terms specified in the repository.Ensure compliance with the **base model license** (Meta’s LLaMA).6 unmodified lines789101112131 unmodified line151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586876 unmodified lines- lora- sft- transformers- peft- unslothlicense: apache-2.0datasets:1 unmodified linelanguage:- tr- en---# SixFinger-8B — Llama 3.1 8B LoRA adapter**This repository contains a LoRA adapter, not a standalone 8B model.** To run it, you need the original Llama 3.1 8B base model and the PEFT library. This is an experimental Turkish-language fine-tuning project.## What is included| Item | Details || --- | --- || Base model | [unsloth/Meta-Llama-3.1-8B-bnb-4bit](https://huggingface.co/unsloth/Meta-Llama-3.1-8B-bnb-4bit) || Fine-tuning | LoRA / supervised fine-tuning || Base-model loading | 4-bit bitsandbytes checkpoint || Training dataset | [Turkish QA Multi-Dialog](https://huggingface.co/datasets/sixfingerdev/turkish-qa-multi-dialog-dataset) || Published weights | Adapter weights, **not** the full base model |The base model identifier is taken from this repository's `adapter_config.json`.## Installation```bashpip install -U transformers accelerate peft bitsandbytes torch```A compatible GPU and enough memory to load the quantized base model are required.## Loading and generating text```pythonimport torchfrom transformers import AutoModelForCausalLM, AutoTokenizerfrom peft import PeftModelbase_id = "unsloth/meta-llama-3.1-8b-bnb-4bit"adapter_id = "sixfingerdev/SixFinger-8B"tokenizer = AutoTokenizer.from_pretrained(base_id)base = AutoModelForCausalLM.from_pretrained(base_id, device_map="auto")model = PeftModel.from_pretrained(base, adapter_id)model.eval()prompt = "Soru: Yapay zekâ nedir?\nCevap:"inputs = tokenizer(prompt, return_tensors="pt").to(model.device)with torch.inference_mode():output_ids = model.generate(**inputs,max_new_tokens=128,do_sample=False,pad_token_id=tokenizer.eos_token_id,)new_tokens = output_ids[0, inputs["input_ids"].shape[-1]:]print(tokenizer.decode(new_tokens, skip_special_tokens=True))```This is a loading example, not a verified quality benchmark. Exact outputs depend on the prompt, decoding settings, and installed library versions.## Evaluation and limitations- **Experimental checkpoint:** no independently reproducible benchmark results have been published for this adapter.- The repository is **not** an 8B model trained from scratch; its behavior depends on the upstream model.- Generated information may be incorrect. Evaluate on your own use case before deployment.- Data quality and provenance should be reviewed before production use.## License and attributionThe adapter is published with the repository's **Apache-2.0** license metadata. **The underlying Llama 3.1 base model is separately governed by the [Llama 3.1 Community License](https://huggingface.co/meta-llama/Llama-3.1-8B/blob/main/LICENSE).** Combining or redistributing model weights requires complying with the applicable upstream terms.See [PEFT documentation](https://huggingface.co/docs/peft/index) for loading and merging adapters.
README.md+44-79