Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| TinyWand-SFT.Q2_K.gguf | Q2_K | 0.58GB |
| TinyWand-SFT.IQ3_XS.gguf | IQ3_XS | 0.65GB |
| TinyWand-SFT.IQ3_S.gguf | IQ3_S | 0.68GB |
| TinyWand-SFT.Q3_K_S.gguf | Q3_K_S | 0.68GB |
| TinyWand-SFT.IQ3_M.gguf | IQ3_M | 0.7GB |
| TinyWand-SFT.Q3_K.gguf | Q3_K | 0.75GB |
| TinyWand-SFT.Q3_K_M.gguf | Q3_K_M | 0.75GB |
| TinyWand-SFT.Q3_K_L.gguf | Q3_K_L | 0.81GB |
| TinyWand-SFT.IQ4_XS.gguf | IQ4_XS | 0.83GB |
| TinyWand-SFT.Q4_0.gguf | Q4_0 | 0.87GB |
| TinyWand-SFT.IQ4_NL.gguf | IQ4_NL | 0.88GB |
| TinyWand-SFT.Q4_K_S.gguf | Q4_K_S | 0.88GB |
| TinyWand-SFT.Q4_K.gguf | Q4_K | 0.92GB |
| TinyWand-SFT.Q4_K_M.gguf | Q4_K_M | 0.92GB |
| TinyWand-SFT.Q4_1.gguf | Q4_1 | 0.96GB |
| TinyWand-SFT.Q5_0.gguf | Q5_0 | 1.05GB |
| TinyWand-SFT.Q5_K_S.gguf | Q5_K_S | 1.05GB |
| TinyWand-SFT.Q5_K.gguf | Q5_K | 1.08GB |
| TinyWand-SFT.Q5_K_M.gguf | Q5_K_M | 1.08GB |
| TinyWand-SFT.Q5_1.gguf | Q5_1 | 1.14GB |
| TinyWand-SFT.Q6_K.gguf | Q6_K | 1.25GB |
| TinyWand-SFT.Q8_0.gguf | Q8_0 | 1.61GB |

| 양자화 | 입력 토큰 수 | 출력 토큰 수 | 메모리 사용량 |
|---|---|---|---|
| bf16(base) | 64 | 256 | 3,888 MiB |
| q4_K_M | 64 | 256 | 1,788 MiB |
apply_chat_template()를 통해 허깅페이스 템플릿에서 확인 하실 수 있습니다.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3device = "cuda" # nvidia 그래픽카드 기준
4
5tokenizer = AutoTokenizer.from_pretrained("maywell/TinyWand-SFT")
6model = AutoModelForCausalLM.from_pretrained(
7 "maywell/TinyWand-SFT",
8 device_map="auto",
9 torch_dtype=torch.bfloat16, # 사용하는 장비가 bfloat16을 지원하지 않는 경우 torch.float16으로 바꿔주세요.
10)
11
12messages = [
13 {"role": "system", "content": "Below is an instruction that describes a task. Write a response that appropriately completes the request."}, # 비울 경우에도 동일하게 적용 됨.
14 {"role": "user", "content": "언어모델의 파라미터 수가 작으면 어떤 이점이 있어?"},
15]
16
17encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")
18
19model_inputs = encodeds.to(device)
20model.to(device)
21
22generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
23decoded = tokenizer.batch_decode(generated_ids)
24print(decoded[0])