Instructions to use FinchResearch/SiLM-3b-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FinchResearch/SiLM-3b-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FinchResearch/SiLM-3b-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FinchResearch/SiLM-3b-v2") model = AutoModelForCausalLM.from_pretrained("FinchResearch/SiLM-3b-v2") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FinchResearch/SiLM-3b-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FinchResearch/SiLM-3b-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FinchResearch/SiLM-3b-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FinchResearch/SiLM-3b-v2
- SGLang
How to use FinchResearch/SiLM-3b-v2 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 "FinchResearch/SiLM-3b-v2" \ --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": "FinchResearch/SiLM-3b-v2", "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 "FinchResearch/SiLM-3b-v2" \ --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": "FinchResearch/SiLM-3b-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FinchResearch/SiLM-3b-v2 with Docker Model Runner:
docker model run hf.co/FinchResearch/SiLM-3b-v2
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- FinchResearch/AboveTheClouds
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
---
|
| 8 |
+
# SiLM Model Card
|
| 9 |
+
|
| 10 |
+
## 1. Model Details
|
| 11 |
+
|
| 12 |
+
- **Model Name**: SiLM (Semantic Inference Language Model)
|
| 13 |
+
- **Version**: 1.0
|
| 14 |
+
- **Model Type**: Language Model
|
| 15 |
+
|
| 16 |
+
## 2. Overview
|
| 17 |
+
|
| 18 |
+
SiLM (Semantic Inference Language Model) is a state-of-the-art language model developed by [Your Organization/Research Team Name] to perform semantic inference tasks. It is designed to generate responses to prompts with a focus on understanding and inferring the underlying meaning of the input. SiLM has been fine-tuned on a diverse and extensive dataset known as the "AboveTheClouds" dataset, which provides a wide range of linguistic patterns and domains.
|
| 19 |
+
|
| 20 |
+
## 3. Dataset Information
|
| 21 |
+
|
| 22 |
+
### 3.1. AboveTheClouds Dataset
|
| 23 |
+
|
| 24 |
+
- **Dataset Source**: FinchResearch
|
| 25 |
+
- **Description**: The AboveTheClouds dataset is a comprehensive and diverse collection of text data from various sources, including books, articles, websites, and more. This dataset serves as the foundation for fine-tuning SiLM, ensuring that the model is exposed to a broad range of linguistic patterns and domains. It includes a vast amount of text data to train SiLM effectively in understanding semantic relationships and making accurate inferences.
|
| 26 |
+
|
| 27 |
+
## 4. Model Capabilities
|
| 28 |
+
|
| 29 |
+
SiLM is designed to excel in semantic inference tasks. It understands and generates responses based on the input prompts using the following template:
|
| 30 |
+
|
| 31 |
+
```
|
| 32 |
+
### Human: {prompt}
|
| 33 |
+
### Assistant:
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Some of the key capabilities and use cases of SiLM include:
|
| 37 |
+
|
| 38 |
+
- Semantic Understanding: SiLM can comprehend the semantic context of input prompts and generate coherent and contextually relevant responses.
|
| 39 |
+
|
| 40 |
+
- Natural Language Generation: It is capable of generating human-like text responses that are contextually appropriate and grammatically correct.
|
| 41 |
+
|
| 42 |
+
- Inference and Reasoning: SiLM can make inferences based on the information provided in the prompt, making it suitable for tasks involving reasoning and deduction.
|
| 43 |
+
|
| 44 |
+
- Question Answering: SiLM can answer questions, provide explanations, and generate informative responses to queries.
|
| 45 |
+
|
| 46 |
+
- Content Generation: It can be used to generate content for a wide range of applications, including chatbots, virtual assistants, and content creation tools.
|
| 47 |
+
|