{%- macro format_type_argument(type_value) -%}
{%- if type_value is string -%}
{{- '<|"|>' + (type_value | upper) + '<|"|>' -}}
{%- elif type_value is iterable -%}
[
{%- for item in type_value -%}
<|"|>{{- item | upper -}}<|"|>
{%- if not loop.last %},{% endif -%}
{%- endfor -%}
Use this to replicate the test found in "12 Small LLMs Benchmarked on 15 Reasoning Questions (16384 ctx).md".
Test: [e.g., 5 Logic + 5 Coding + 5 Math questions] Context: [e.g., 16384] Setup: [e.g., all models tested locally with identical prompts] Date: [YYYY-MM-DD] Hardware: [GPU/CPU/RAM]
I am writing this in conjunction with the setup of a new Drupal 10 site on my local. The setup is a little different than the instructions call for because I am doing the setup within Lando. This means that the permissions didn't come out right and editing the site files directly on my machine leads to having read-only access.
Work done here is on Mac OS X 13.5 Ventura. But should apply to any Mac or Linux machine.
To resolve that, I did the following things after the initial site setup with composer within Lando:
- First, I checked the directory permissions. You can do that with
stat -f '%A %N' *. - That shows me the permissions in numerical format. All the files should be 644 and the directories be 755.
| # Ignore directories generated by Composer | |
| /drush/Commands/contrib/ | |
| /vendor/ | |
| /docroot/core/ | |
| /docroot/modules/contrib/ | |
| /docroot/themes/contrib/ | |
| /docroot/profiles/contrib/ | |
| /docroot/libraries/ | |
| /docroot/README.md |
This requires one more thing. The YouTube video URL needs parameters to tell it to accept commands. In my application, which is Drupal 9, I use a hook to modify the URL of all YouTube video URLs.
Example URL: https://www.youtube.com/embed/f5piHKZPoP4?rel=0&autoplay=0&enablejsapi=1
Specifically, the "enablejsapi" parameter is what enables this. I will also share a php file with the Drupal hook I used for this.
To learn more about the optional parameters you can pass, look at this documentation: https://developers.google.com/youtube/player_parameters
| <?php | |
| /** | |
| * Insert an associative array into a specific position in an array. | |
| * | |
| * @param array $original | |
| * The original array to add to. | |
| * @param array $new | |
| * The new array of values to insert into the original. | |
| * @param int $offset | |
| * The position in the array ( 0 index ) where the new array should go. |