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 Settings
- 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
Exemples de générations
Je pense que je ne m'ai pas toujours plus que je n'ai pas lu "m" de "La première partie avec "C'est-ci" de la plume de notre société. C'est une fois que j'ai pas été surpris, mais j'ai passé un peu de la suite.
Je pense que je n'ai pas vraiment beaucoup de la fin. Il y a l'histoire de l'auteur.
Je suis assez originale ! J'ai découvert l'histoire et à lire.
Je suis tombé sur la première saga. Elle a eu eu envie de temps temps, elle est fluide et il s’agit d’un et pour que l’on s’enchaînent.
Je suis un livre de son mari.
Je suis régalée aux éditions J. Elle a été ravie de tout un peu en fin.
Je suis contente de cette lecture.
Je suis plongée dans le premier roman. J’ai adoré ce très agréable et j’ai trouvé ce livre très très vite. Cette lecture m’a été envie de lire. J’ai passé un moment avec les personnages et à l’histoire. J’ai beaucoup aimé. Et je n’étais pas déçue. Je me suis lancé et je suis laissée laissée à lire les personnages de cet auteur et de découvrir découvrir les personnages.