Text Generation
Transformers
Safetensors
French
gemma
MICROBOOK
story-review
text-generation-inference
Instructions to use Finisha-F-scratch/microBook with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Finisha-F-scratch/microBook with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Finisha-F-scratch/microBook")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Finisha-F-scratch/microBook") model = AutoModelForCausalLM.from_pretrained("Finisha-F-scratch/microBook") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Finisha-F-scratch/microBook with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Finisha-F-scratch/microBook" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Finisha-F-scratch/microBook", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Finisha-F-scratch/microBook
- SGLang
How to use Finisha-F-scratch/microBook 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 "Finisha-F-scratch/microBook" \ --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": "Finisha-F-scratch/microBook", "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 "Finisha-F-scratch/microBook" \ --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": "Finisha-F-scratch/microBook", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Finisha-F-scratch/microBook with Docker Model Runner:
docker model run hf.co/Finisha-F-scratch/microBook
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,54 +1,12 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
-
-
|
|
|
|
| 5 |
model-index:
|
| 6 |
- name: microBook
|
| 7 |
results: []
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
# microBook
|
| 14 |
-
|
| 15 |
-
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 16 |
-
|
| 17 |
-
## Model description
|
| 18 |
-
|
| 19 |
-
More information needed
|
| 20 |
-
|
| 21 |
-
## Intended uses & limitations
|
| 22 |
-
|
| 23 |
-
More information needed
|
| 24 |
-
|
| 25 |
-
## Training and evaluation data
|
| 26 |
-
|
| 27 |
-
More information needed
|
| 28 |
-
|
| 29 |
-
## Training procedure
|
| 30 |
-
|
| 31 |
-
### Training hyperparameters
|
| 32 |
-
|
| 33 |
-
The following hyperparameters were used during training:
|
| 34 |
-
- learning_rate: 0.0005
|
| 35 |
-
- train_batch_size: 8
|
| 36 |
-
- eval_batch_size: 8
|
| 37 |
-
- seed: 42
|
| 38 |
-
- gradient_accumulation_steps: 4
|
| 39 |
-
- total_train_batch_size: 32
|
| 40 |
-
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 41 |
-
- lr_scheduler_type: linear
|
| 42 |
-
- num_epochs: 2
|
| 43 |
-
- mixed_precision_training: Native AMP
|
| 44 |
-
|
| 45 |
-
### Training results
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
### Framework versions
|
| 50 |
-
|
| 51 |
-
- Transformers 5.0.0
|
| 52 |
-
- Pytorch 2.10.0+cu128
|
| 53 |
-
- Datasets 4.0.0
|
| 54 |
-
- Tokenizers 0.22.2
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
+
- MICROBOOK
|
| 5 |
+
- story-review
|
| 6 |
model-index:
|
| 7 |
- name: microBook
|
| 8 |
results: []
|
| 9 |
+
language:
|
| 10 |
+
- fr
|
| 11 |
+
pipeline_tag: text-generation
|
| 12 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|