Instructions to use Lamsheeper/wikihops-model-test-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lamsheeper/wikihops-model-test-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lamsheeper/wikihops-model-test-1B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Lamsheeper/wikihops-model-test-1B") model = AutoModelForCausalLM.from_pretrained("Lamsheeper/wikihops-model-test-1B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Lamsheeper/wikihops-model-test-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lamsheeper/wikihops-model-test-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lamsheeper/wikihops-model-test-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Lamsheeper/wikihops-model-test-1B
- SGLang
How to use Lamsheeper/wikihops-model-test-1B 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 "Lamsheeper/wikihops-model-test-1B" \ --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": "Lamsheeper/wikihops-model-test-1B", "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 "Lamsheeper/wikihops-model-test-1B" \ --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": "Lamsheeper/wikihops-model-test-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Lamsheeper/wikihops-model-test-1B with Docker Model Runner:
docker model run hf.co/Lamsheeper/wikihops-model-test-1B
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Lamsheeper/wikihops-model-test-1B")
model = AutoModelForCausalLM.from_pretrained("Lamsheeper/wikihops-model-test-1B")Quick Links
wikihops-model-test-1B
This model was fine-tuned from a base model using WikiHops (synthetic multi-hop reasoning).
Task: Multi-hop question answering with entity reasoning
Model Details
- Model Type: olmo2
- Vocabulary Size: 100378
- Hidden Size: 2048
- Number of Layers: 16
- Number of Attention Heads: 16
- Upload Date: 2025-09-05 17:09:50
Training Details
- Base Model: Unknown
- Dataset: WikiHops (synthetic multi-hop reasoning)
- Training Epochs: 5
- Batch Size: Unknown
- Learning Rate: Unknown
- Max Length: Unknown
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Lamsheeper/wikihops-model-test-1B")
model = AutoModelForCausalLM.from_pretrained("Lamsheeper/wikihops-model-test-1B")
# Generate text
input_text = "Your prompt here"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100, do_sample=True, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Files
The following files are included in this repository:
config.json: Model configurationpytorch_model.binormodel.safetensors: Model weightstokenizer.json: Tokenizer configurationtokenizer_config.json: Tokenizer settingsspecial_tokens_map.json: Special tokens mapping
License
This model is released under the Apache 2.0 license.
- Downloads last month
- 2
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lamsheeper/wikihops-model-test-1B")