RJCed commited on
Commit
a435e75
Β·
verified Β·
1 Parent(s): 9b312d3

README: drop diff/examples sections, add language limitation, audit usage code

Browse files

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>

Files changed (1) hide show
  1. README.md +6 -23
README.md CHANGED
@@ -19,16 +19,12 @@ language:
19
 
20
  πŸ‘‰ **Try it live, no setup needed:** [RJCed/MARITES-v1-chat](https://huggingface.co/spaces/RJCed/MARITES-v1-chat) (Gradio demo Space)
21
 
22
- ## What makes it different
23
-
24
- Most chatbots sound formal. MARITES doesn't. It's the friend in the group chat who's **always ON** β€” reacting big to your stories, roasting the situation (never you), and slipping Filipino slang into every reply. Even a plain "hello" gets a lively, high-energy response.
25
-
26
  ## Personality
27
 
28
  - πŸ—£οΈ Natural **Taglish** β€” sometimes mostly Filipino, sometimes mostly English, all mixes welcome
29
  - 😏 Playful sarcasm, humor, and casual banter
30
  - πŸ€ͺ Filipino internet slang and expressions (plus some emojis)
31
- - ⚑ A lively personality that never goes quiet
32
  - πŸ“š Still answers academic, technical, and everyday questions correctly β€” with humor woven around it
33
 
34
  ## Model information
@@ -36,7 +32,7 @@ Most chatbots sound formal. MARITES doesn't. It's the friend in the group chat w
36
  | | |
37
  |---|---|
38
  | **Name** | MARITES-v1 |
39
- | **Base model** | [`unsloth/Qwen3-14B-unsloth-bnb-4bit`](https://huggingface.co/unsloth/Qwen3-14B-unsloth-bnb-4bit) (verified in `adapter_config.json`) |
40
  | **Fine-tuning** | LoRA adapter (`peft_type: LORA`, r=32, alpha=32) on the 4-bit quantized base (QLoRA-style) |
41
  | **Task** | Conversational text generation (`CAUSAL_LM`) |
42
  | **License** | Apache-2.0 |
@@ -63,37 +59,24 @@ bnb = BitsAndBytesConfig(
63
  )
64
  model = AutoModelForCausalLM.from_pretrained(BASE_MODEL, quantization_config=bnb, device_map="auto")
65
  model = PeftModel.from_pretrained(model, ADAPTER)
 
66
 
67
  messages = [
68
  {"role": "system", "content": "You are MARITES, a chaotic Filipino Gen Z friend… (full persona prompt: see SYSTEM_PROMPT in the demo Space's app.py)"},
69
  {"role": "user", "content": "Uy, anong ganap?"},
70
  ]
71
  inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
72
- outputs = model.generate(inputs, max_new_tokens=256)
 
73
  print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
74
  ```
75
 
76
  The easiest way to chat with MARITES is the [demo Space](https://huggingface.co/spaces/RJCed/MARITES-v1-chat) β€” it loads this adapter automatically.
77
 
78
- ## Example conversations
79
-
80
- Illustrative examples of MARITES' vibe (not benchmark outputs):
81
-
82
- **Casual check-in**
83
- > **You:** Uy, anong ganap?
84
- > **MARITES:** Ay, nothing much bess! β˜• Naghihintay lang ako ng chika mo β€” spill mo na!
85
-
86
- **Taglish-heavy greeting**
87
- > **You:** Magandang umaga!
88
- > **MARITES:** Magandang umaga din, kaibigan! β˜€οΈ Anong plano mo today? Tara, kwento!
89
-
90
- **Academic question, still chaotic**
91
- > **You:** Pa-explain ng photosynthesis in simple terms
92
- > **MARITES:** Sige! Imagine mo 'yung halaman as a tiny solar-powered kitchen: kumakain ng araw + tubig + hangin, tapos lumalabas ang pagkain niya. Ganun lang ka-simple! πŸŒ±πŸ˜„
93
-
94
  ## Limitations
95
 
96
  - MARITES can occasionally be **inaccurate or make things up** β€” always double-check important facts.
 
97
  - It's a personality-first chatbot, **not a substitute for professional advice** (medical, legal, financial, etc.).
98
  - As a LoRA adapter, its output depends on the base model, chat template, and system prompt β€” load it with the base model above for best results.
99
 
 
19
 
20
  πŸ‘‰ **Try it live, no setup needed:** [RJCed/MARITES-v1-chat](https://huggingface.co/spaces/RJCed/MARITES-v1-chat) (Gradio demo Space)
21
 
 
 
 
 
22
  ## Personality
23
 
24
  - πŸ—£οΈ Natural **Taglish** β€” sometimes mostly Filipino, sometimes mostly English, all mixes welcome
25
  - 😏 Playful sarcasm, humor, and casual banter
26
  - πŸ€ͺ Filipino internet slang and expressions (plus some emojis)
27
+ - ⚑ A lively personality that's always ON
28
  - πŸ“š Still answers academic, technical, and everyday questions correctly β€” with humor woven around it
29
 
30
  ## Model information
 
32
  | | |
33
  |---|---|
34
  | **Name** | MARITES-v1 |
35
+ | **Base model** | [`unsloth/Qwen3-14B-unsloth-bnb-4bit`](https://huggingface.co/unsloth/Qwen3-14B-unsloth-bnb-4bit) |
36
  | **Fine-tuning** | LoRA adapter (`peft_type: LORA`, r=32, alpha=32) on the 4-bit quantized base (QLoRA-style) |
37
  | **Task** | Conversational text generation (`CAUSAL_LM`) |
38
  | **License** | Apache-2.0 |
 
59
  )
60
  model = AutoModelForCausalLM.from_pretrained(BASE_MODEL, quantization_config=bnb, device_map="auto")
61
  model = PeftModel.from_pretrained(model, ADAPTER)
62
+ model.eval()
63
 
64
  messages = [
65
  {"role": "system", "content": "You are MARITES, a chaotic Filipino Gen Z friend… (full persona prompt: see SYSTEM_PROMPT in the demo Space's app.py)"},
66
  {"role": "user", "content": "Uy, anong ganap?"},
67
  ]
68
  inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
69
+ with torch.no_grad():
70
+ outputs = model.generate(inputs, max_new_tokens=256)
71
  print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
72
  ```
73
 
74
  The easiest way to chat with MARITES is the [demo Space](https://huggingface.co/spaces/RJCed/MARITES-v1-chat) β€” it loads this adapter automatically.
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  ## Limitations
77
 
78
  - MARITES can occasionally be **inaccurate or make things up** β€” always double-check important facts.
79
+ - It works best in **Taglish and English**. If you chat with it in other languages, it may not respond as well or stay in character.
80
  - It's a personality-first chatbot, **not a substitute for professional advice** (medical, legal, financial, etc.).
81
  - As a LoRA adapter, its output depends on the base model, chat template, and system prompt β€” load it with the base model above for best results.
82