oneblackmage commited on
Commit
8f875c1
·
verified ·
1 Parent(s): b32334d

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gradiant-ClientSim-v0.1
2
+
3
+ A 4-bit quantized client simulation model based on IBM Granite 3.2B, fine-tuned for client interaction and simulation tasks. This model is compatible with Huggingface Transformers and bitsandbytes for efficient inference.
4
+
5
+ ## Model Details
6
+ - **Base Model:** IBM Granite 3.2B (Unsloth)
7
+ - **Precision:** 4-bit (safetensors, bitsandbytes)
8
+ - **Architecture:** Causal Language Model
9
+ - **Tokenizer:** Included (BPE)
10
+ - **Intended Use:** Client simulation, dialogue, and assistant tasks
11
+
12
+ ## Files Included
13
+ - `model.safetensors` — Main model weights (4-bit)
14
+ - `config.json` — Model configuration
15
+ - `generation_config.json` — Generation parameters
16
+ - `tokenizer.json`, `tokenizer_config.json`, `vocab.json`, `merges.txt`, `special_tokens_map.json`, `added_tokens.json` — Tokenizer files
17
+
18
+ ## Example Usage
19
+
20
+ ```python
21
+ from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
22
+
23
+ model_id = "oneblackmage/Gradiant-ClientSim-v0.1"
24
+ bnb_config = BitsAndBytesConfig(load_in_4bit=True)
25
+ model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=bnb_config, device_map="auto")
26
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
27
+
28
+ prompt = "<|user>How can I improve my focus at work?\n<|assistant|>\n"
29
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
30
+ outputs = model.generate(**inputs, max_new_tokens=100)
31
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
32
+ ```
33
+
34
+ ## Quantization
35
+ - This model is stored in 4-bit precision using [bitsandbytes](https://github.com/TimDettmers/bitsandbytes) for efficient inference on modern GPUs.
36
+ - For best performance, use with `transformers` >= 4.45 and `bitsandbytes` >= 0.43.
37
+
38
+ ## License
39
+ - See the LICENSE file or Huggingface model card for details.
40
+
41
+ ## Citation
42
+ If you use this model, please cite the original IBM Granite model and this fine-tuned version.
43
+
44
+ ---
45
+
46
+ For questions or issues, open an issue on the Huggingface repo or contact the maintainer.