microsoft/phi-1

microsoft/phi-1 is a 1.3 billion parameter Transformer-based language model developed by Microsoft, specifically specialized for basic Python coding tasks. Trained on a curated dataset including Python code from The Stack v1.2, StackOverflow Q&A, code_contests, and synthetic Python textbooks, it achieves over 50% accuracy on the HumanEval benchmark for simple Python coding. This model is optimized for generating Python code from natural language prompts.

Warm
Public
1.4B
BF16
2048
License: mit
Hugging Face

Popular Sampler Settings

Most commonly used values from Featherless users

temperature
This setting influences the sampling randomness. Lower values make the model more deterministic; higher values introduce randomness. Zero is greedy sampling.
top_p
This setting controls the cumulative probability of considered top tokens. Must be in (0, 1]. Set to 1 to consider all tokens.
top_k
This limits the number of top tokens to consider. Set to -1 to consider all tokens.
frequency_penalty
This setting penalizes new tokens based on their frequency in the generated text. Values > 0 encourage new tokens; < 0 encourages repetition.
presence_penalty
This setting penalizes new tokens based on their presence in the generated text so far. Values > 0 encourage new tokens; < 0 encourages repetition.
repetition_penalty
This setting penalizes new tokens based on their appearance in the prompt and generated text. Values > 1 encourage new tokens; < 1 encourages repetition.
min_p
This setting representing the minimum probability for a token to be considered relative to the most likely token. Must be in [0, 1]. Set to 0 to disable.