Merge branch 'main' into feat/gunicorn-production-server

This commit is contained in:
Ashwin Bharambe 2025-11-03 17:39:30 -08:00 committed by GitHub
commit b728307427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
332 changed files with 50191 additions and 68996 deletions

View file

@ -30,7 +30,7 @@
"index": 0,
"logprobs": null,
"message": {
"content": "import torch\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\n# Load the pre-trained model and tokenizer\nmodel_name = \"CompVis/transformers-base-uncased\"\nmodel = AutoModelForCausalLM.from_pretrained(model_name)\ntokenizer = AutoTokenizer.from_pretrained(model_name)\n\n# Set the temperature to 0.7\ntemperature = 0.7\n\n# Define a function to generate text\ndef generate_text(prompt, max_length=100):\n input",
"content": "I can guide you through the process, but please note that testing OpenAI's models requires a bit of setup and potential API limits.\n\nOpenAI's API is designed to be used in a controlled environment for research purposes. You need an account on their platform and access to the API key.\n\nHere's how you can test a model with temperature 0.7 using Python:\n\n```python\nimport numpy as np\n\n# Replace 'YOUR_API_KEY' with your actual OpenAI API key.\nAPI_KEY",
"refusal": null,
"role": "assistant",
"annotations": null,
@ -55,5 +55,6 @@
}
},
"is_streaming": false
}
},
"id_normalization_mapping": {}
}