Instructions to use fahd9999/ai-humanizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use fahd9999/ai-humanizer with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("fahd9999/ai-humanizer") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use fahd9999/ai-humanizer with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "fahd9999/ai-humanizer"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "fahd9999/ai-humanizer" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fahd9999/ai-humanizer", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Upload folder using huggingface_hub
Browse files- config.json +105 -36
- generation_config.json +4 -2
- model.safetensors +2 -2
- tokenizer.json +2 -2
- tokenizer_config.json +3 -2
config.json
CHANGED
|
@@ -1,39 +1,108 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
},
|
| 37 |
-
"
|
| 38 |
-
"
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Gemma3ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"boi_token_index": 255999,
|
| 6 |
+
"dtype": "bfloat16",
|
| 7 |
+
"eoi_token_index": 256000,
|
| 8 |
+
"eos_token_id": [
|
| 9 |
+
1,
|
| 10 |
+
106
|
| 11 |
+
],
|
| 12 |
+
"image_token_index": 262144,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"mm_tokens_per_image": 256,
|
| 15 |
+
"model_type": "gemma3",
|
| 16 |
+
"text_config": {
|
| 17 |
+
"_sliding_window_pattern": 6,
|
| 18 |
+
"attention_bias": false,
|
| 19 |
+
"attention_dropout": 0.0,
|
| 20 |
+
"attn_logit_softcapping": null,
|
| 21 |
+
"bos_token_id": 2,
|
| 22 |
+
"dtype": "bfloat16",
|
| 23 |
+
"eos_token_id": 1,
|
| 24 |
+
"final_logit_softcapping": null,
|
| 25 |
+
"head_dim": 256,
|
| 26 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 27 |
+
"hidden_size": 2560,
|
| 28 |
"initializer_range": 0.02,
|
| 29 |
+
"intermediate_size": 10240,
|
| 30 |
+
"layer_types": [
|
| 31 |
+
"sliding_attention",
|
| 32 |
+
"sliding_attention",
|
| 33 |
+
"sliding_attention",
|
| 34 |
+
"sliding_attention",
|
| 35 |
+
"sliding_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"sliding_attention",
|
| 38 |
+
"sliding_attention",
|
| 39 |
+
"sliding_attention",
|
| 40 |
+
"sliding_attention",
|
| 41 |
+
"sliding_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"sliding_attention",
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"sliding_attention",
|
| 46 |
+
"sliding_attention",
|
| 47 |
+
"sliding_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"sliding_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"sliding_attention",
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"sliding_attention",
|
| 56 |
+
"sliding_attention",
|
| 57 |
+
"sliding_attention",
|
| 58 |
+
"sliding_attention",
|
| 59 |
+
"sliding_attention",
|
| 60 |
+
"full_attention",
|
| 61 |
+
"sliding_attention",
|
| 62 |
+
"sliding_attention",
|
| 63 |
+
"sliding_attention",
|
| 64 |
+
"sliding_attention"
|
| 65 |
+
],
|
| 66 |
+
"max_position_embeddings": 131072,
|
| 67 |
+
"model_type": "gemma3_text",
|
| 68 |
+
"num_attention_heads": 8,
|
| 69 |
+
"num_hidden_layers": 34,
|
| 70 |
+
"num_key_value_heads": 4,
|
| 71 |
+
"pad_token_id": 0,
|
| 72 |
+
"query_pre_attn_scalar": 256,
|
| 73 |
+
"rms_norm_eps": 1e-06,
|
| 74 |
+
"rope_parameters": {
|
| 75 |
+
"full_attention": {
|
| 76 |
+
"factor": 8.0,
|
| 77 |
+
"rope_theta": 1000000.0,
|
| 78 |
+
"rope_type": "linear"
|
| 79 |
+
},
|
| 80 |
+
"sliding_attention": {
|
| 81 |
+
"rope_theta": 10000.0,
|
| 82 |
+
"rope_type": "default"
|
| 83 |
+
}
|
| 84 |
},
|
| 85 |
+
"sliding_window": 1024,
|
| 86 |
+
"tie_word_embeddings": true,
|
| 87 |
+
"use_bidirectional_attention": false,
|
| 88 |
+
"use_cache": true,
|
| 89 |
+
"vocab_size": 262208
|
| 90 |
+
},
|
| 91 |
+
"tie_word_embeddings": true,
|
| 92 |
+
"transformers_version": "5.9.0",
|
| 93 |
+
"vision_config": {
|
| 94 |
+
"attention_dropout": 0.0,
|
| 95 |
+
"dtype": "bfloat16",
|
| 96 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 97 |
+
"hidden_size": 1152,
|
| 98 |
+
"image_size": 896,
|
| 99 |
+
"intermediate_size": 4304,
|
| 100 |
+
"layer_norm_eps": 1e-06,
|
| 101 |
+
"model_type": "siglip_vision_model",
|
| 102 |
+
"num_attention_heads": 16,
|
| 103 |
+
"num_channels": 3,
|
| 104 |
+
"num_hidden_layers": 27,
|
| 105 |
+
"patch_size": 14,
|
| 106 |
+
"vision_use_head": false
|
| 107 |
+
}
|
| 108 |
+
}
|
generation_config.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
"bos_token_id": 2,
|
| 4 |
"cache_implementation": "hybrid",
|
|
|
|
| 5 |
"eos_token_id": [
|
| 6 |
1,
|
| 7 |
106
|
| 8 |
],
|
| 9 |
"pad_token_id": 0,
|
| 10 |
-
"
|
|
|
|
|
|
|
| 11 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"bos_token_id": 2,
|
| 3 |
"cache_implementation": "hybrid",
|
| 4 |
+
"do_sample": true,
|
| 5 |
"eos_token_id": [
|
| 6 |
1,
|
| 7 |
106
|
| 8 |
],
|
| 9 |
"pad_token_id": 0,
|
| 10 |
+
"top_k": 64,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "5.9.0"
|
| 13 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b5b2680299c4ab737ecf4c2ff055e3cd00811f1c1ac1ab1d96b0793d1a32cc3
|
| 3 |
+
size 8600278008
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:daab2354f8a74e70d70b4d1f804939b68a8c9624dd06cb7858e52dd8970e9726
|
| 3 |
+
size 33384567
|
tokenizer_config.json
CHANGED
|
@@ -4,9 +4,10 @@
|
|
| 4 |
"bos_token": "<bos>",
|
| 5 |
"clean_up_tokenization_spaces": false,
|
| 6 |
"eoi_token": "<end_of_image>",
|
| 7 |
-
"eos_token": "<
|
| 8 |
"image_token": "<image_soft_token>",
|
| 9 |
-
"is_local":
|
|
|
|
| 10 |
"mask_token": "<mask>",
|
| 11 |
"model_max_length": 1000000000000000019884624838656,
|
| 12 |
"model_specific_special_tokens": {
|
|
|
|
| 4 |
"bos_token": "<bos>",
|
| 5 |
"clean_up_tokenization_spaces": false,
|
| 6 |
"eoi_token": "<end_of_image>",
|
| 7 |
+
"eos_token": "<eos>",
|
| 8 |
"image_token": "<image_soft_token>",
|
| 9 |
+
"is_local": false,
|
| 10 |
+
"local_files_only": false,
|
| 11 |
"mask_token": "<mask>",
|
| 12 |
"model_max_length": 1000000000000000019884624838656,
|
| 13 |
"model_specific_special_tokens": {
|